• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ManageUserUISupport类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.pentaho.di.ui.repository.repositoryexplorer.uisupport.ManageUserUISupport的典型用法代码示例。如果您正苦于以下问题:Java ManageUserUISupport类的具体用法?Java ManageUserUISupport怎么用?Java ManageUserUISupport使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ManageUserUISupport类属于org.pentaho.di.ui.repository.repositoryexplorer.uisupport包,在下文中一共展示了ManageUserUISupport类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setRepository

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.uisupport.ManageUserUISupport; //导入依赖的package包/类
public void setRepository(Repository rep) {
  this.rep = rep;
  if (rep != null) {
    this.capabilities = rep.getRepositoryMeta().getRepositoryCapabilities();
  }
  // Registering the UI Support classes
  UISupportRegistery.getInstance().registerUISupport(RepositorySecurityProvider.class,
      BaseRepositoryExplorerUISupport.class);
  UISupportRegistery.getInstance().registerUISupport(RepositorySecurityManager.class, ManageUserUISupport.class);
  if (rep != null) {
    SpoonPluginManager.getInstance().notifyLifecycleListeners(SpoonLifeCycleEvent.REPOSITORY_CHANGED);
  }
  delegates.update(this);
  enableMenus();
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:16,
代码来源:Spoon.java

示例2: setRepository

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.uisupport.ManageUserUISupport; //导入依赖的package包/类
public void setRepository( Repository rep ) {
  this.rep = rep;
  this.repositoryName = rep != null ? rep.getName() : null;
  try {

    // Keep one metastore here...
    //
    if ( metaStore.getMetaStoreList().size() > 1 ) {
      metaStore.getMetaStoreList().remove( 0 );
      metaStore.setActiveMetaStoreName( metaStore.getMetaStoreList().get( 0 ).getName() );
    }

    if ( rep != null ) {
      this.capabilities = rep.getRepositoryMeta().getRepositoryCapabilities();

      // add a wrapper metastore to the delegation
      //
      IMetaStore repositoryMetaStore = rep.getMetaStore();
      if ( repositoryMetaStore != null ) {
        metaStore.addMetaStore( 0, repositoryMetaStore ); // first priority for explicitly connected repositories.
        metaStore.setActiveMetaStoreName( repositoryMetaStore.getName() );
        log.logBasic( "Connected to metastore : "
          + repositoryMetaStore.getName() + ", added to delegating metastore" );
      } else {
        log.logBasic( "No metastore found in the repository : "
          + rep.getName() + ", connected? " + rep.isConnected() );
      }
    }
  } catch ( MetaStoreException e ) {
    new ErrorDialog(
      shell, BaseMessages.getString( PKG, "Spoon.Dialog.ErrorAddingRepositoryMetaStore.Title" ), BaseMessages
        .getString( PKG, "Spoon.Dialog.ErrorReadingSharedObjects.Message" ), e );
  }

  // Registering the UI Support classes
  UISupportRegistery.getInstance().registerUISupport(
    RepositorySecurityProvider.class, BaseRepositoryExplorerUISupport.class );
  UISupportRegistery
    .getInstance().registerUISupport( RepositorySecurityManager.class, ManageUserUISupport.class );
  if ( rep != null ) {
    SpoonPluginManager.getInstance().notifyLifecycleListeners( SpoonLifeCycleEvent.REPOSITORY_CHANGED );
  }
  delegates.update( this );
  enableMenus();
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:46,
代码来源:Spoon.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)