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

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

java 1次浏览

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

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

示例1: init

点赞 3

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init(Repository repository) throws ControllerInitializationException {
  try {
    this.repository = repository;

    mainController = (MainController) this.getXulDomContainer().getEventHandler("mainController");
    try {
      this.repositoryDirectory = UIObjectRegistry.getInstance().constructUIRepositoryDirectory(
          repository.loadRepositoryDirectoryTree(), null, repository);
    } catch (UIObjectCreationException uoe) {
      this.repositoryDirectory = new UIRepositoryDirectory(repository.loadRepositoryDirectoryTree(), null, repository);
    }
    dirMap = new HashMap<ObjectId, UIRepositoryDirectory>();
    populateDirMap(repositoryDirectory);

    bf = new SwtBindingFactory();
    bf.setDocument(this.getXulDomContainer().getDocumentRoot());
    messageBox = (XulMessageBox) document.createElement("messagebox");//$NON-NLS-1$
    createBindings();
  } catch (Exception e) {
    throw new ControllerInitializationException(e);
  }
}
 

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

示例2: init

点赞 3

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init( Repository repository ) throws ControllerInitializationException {
  try {
    if ( repository.hasService( IAbsSecurityProvider.class ) ) {
      service = (IAbsSecurityProvider) repository.getService( IAbsSecurityProvider.class );
      bf = new DefaultBindingFactory();
      bf.setDocument( this.getXulDomContainer().getDocumentRoot() );

      if ( bf != null ) {
        createBindings();
      }
      setAllowed( allowedActionsContains( service, IAbsSecurityProvider.CREATE_CONTENT_ACTION ) );
    }
  } catch ( KettleException e ) {
    throw new ControllerInitializationException( e );
  }
}
 

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

示例3: init

点赞 3

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init( Repository repository ) throws ControllerInitializationException {
  try {
    this.repository = repository;
    mainController = (MainController) this.getXulDomContainer().getEventHandler( "mainController" ); //$NON-NLS-1$
    browseController = (BrowseController) this.getXulDomContainer().getEventHandler( "browseController" ); //$NON-NLS-1$
    bf = new DefaultBindingFactory();
    bf.setDocument( this.getXulDomContainer().getDocumentRoot() );

    messageBox = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$
    createBindings();
  } catch ( Exception e ) {
    if ( mainController == null || !mainController.handleLostRepository( e ) ) {
      throw new ControllerInitializationException( e );
    }
  }
}
 

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

示例4: initControllers

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void initControllers(Repository rep) throws ControllerInitializationException {
  for(String name:controllerNames) {
    try {
      IUISupportController controller = (IUISupportController)
         container.getEventHandler(name);
      controller.init(rep);
    } catch (XulException e) {
      throw new ControllerInitializationException(e);
    }
  }
}
 

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

示例5: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init() throws ControllerInitializationException {
  // TODO Initialize the Repository Login Dialog
  try {
    messageBox = (XulMessageBox) document.createElement("messagebox");//$NON-NLS-1$
    confirmBox = (XulConfirmBox) document.createElement("confirmbox");//$NON-NLS-1$
  } catch (Exception e) {
    throw new ControllerInitializationException(e);
  }
  if (bf != null) {
    createBindings();
  }
}
 

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

示例6: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
@SuppressWarnings( "deprecation" )
public void init( Repository repository ) throws ControllerInitializationException {
  try {
    this.repository = repository;

    mainController = (MainController) this.getXulDomContainer().getEventHandler( "mainController" );

    RepositoryDirectoryInterface root;
    try {
      if ( repository instanceof RepositoryExtended ) {
        root = ( (RepositoryExtended) repository ).loadRepositoryDirectoryTree(  "/", "*.ktr|*.kjb", -1,
                BooleanUtils.isTrue( repository.getUserInfo().isAdmin() ), true, true );
      } else {
        root = repository.loadRepositoryDirectoryTree();
      }
      this.repositoryDirectory =
          UIObjectRegistry.getInstance().constructUIRepositoryDirectory( root,
              null, repository );
    } catch ( UIObjectCreationException uoe ) {
      this.repositoryDirectory =
          new UIRepositoryDirectory( repository.loadRepositoryDirectoryTree(), null, repository );
    }
    dirMap = new HashMap<ObjectId, UIRepositoryDirectory>();
    populateDirMap( repositoryDirectory );

    bf = new SwtBindingFactory();
    bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
    messageBox = (XulMessageBox) document.createElement( "messagebox" );
    createBindings();
  } catch ( Exception e ) {
    throw new ControllerInitializationException( e );
  }
}
 

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

示例7: initControllers

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void initControllers( Repository rep ) throws ControllerInitializationException {
  for ( String name : controllerNames ) {
    try {
      IUISupportController controller = (IUISupportController) container.getEventHandler( name );
      controller.init( rep );
    } catch ( XulException e ) {
      throw new ControllerInitializationException( e );
    }
  }
}
 

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

示例8: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init() throws ControllerInitializationException {
  // TODO Initialize the Repository Login Dialog
  try {
    messageBox = (XulMessageBox) document.createElement( "messagebox" );
    confirmBox = (XulConfirmBox) document.createElement( "confirmbox" );
  } catch ( Exception e ) {
    throw new ControllerInitializationException( e );
  }
  if ( bf != null ) {
    createBindings();
  }
}
 

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

示例9: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init() throws ControllerInitializationException {
  bf = new DefaultBindingFactory();
  bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
  try {
    messageBox = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$
  } catch ( Throwable th ) {
    throw new ControllerInitializationException( th );
  }
  model = new RepositoryConfigModel();
  if ( bf != null ) {
    createBindings();
  }
  initializeModel();
}
 

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

示例10: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init( Repository rep ) throws ControllerInitializationException {
  try {
    super.init( rep );
    browseController = (IBrowseController) this.getXulDomContainer().getEventHandler( "browseController" );
    browseController.addContextChangeVetoer( this );
    createBindings();
  } catch ( Exception e ) {
    throw new ControllerInitializationException( e );
  }
}
 

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

示例11: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init( Repository rep ) throws ControllerInitializationException {
  try {
    super.init( rep );
    connectionsController =
        (ConnectionsController) this.getXulDomContainer().getEventHandler( "connectionsController" );
    connectionsController.addContextChangeVetoer( this );
    createBindings();
  } catch ( Exception e ) {
    throw new ControllerInitializationException( e );
  }
}
 

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

示例12: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
@Override
public void init( Repository repository ) throws ControllerInitializationException {
  super.init( repository );
  try {
    trashService = (ITrashService) repository.getService( ITrashService.class );
  } catch ( Throwable e ) {
    throw new ControllerInitializationException( e );
  }
}
 

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

示例13: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init( Repository rep ) throws ControllerInitializationException {
  try {
    if ( rep != null && rep.hasService( ILockService.class ) ) {
      repository = rep;
      service = (ILockService) rep.getService( ILockService.class );
    } else {
      throw new ControllerInitializationException( BaseMessages.getString( PKG,
          "RepositoryLockController.ERROR_0001_UNABLE_TO_INITIAL_REPOSITORY_SERVICE", ILockService.class ) ); //$NON-NLS-1$

    }

    bindingFactory = new DefaultBindingFactory();
    bindingFactory.setDocument( getXulDomContainer().getDocumentRoot() );

    XulEventHandler eventHandler = getXulDomContainer().getEventHandler( "browseController" ); //$NON-NLS-1$

    if ( eventHandler instanceof BrowseController ) {
      browseController = (BrowseController) eventHandler;
    }

    // Disable row dragging if it is locked and the user does not have permissions
    fileTable = (XulTree) getXulDomContainer().getDocumentRoot().getElementById( "file-table" ); //$NON-NLS-1$
    folderTree = (XulTree) document.getElementById( "folder-tree" ); //$NON-NLS-1$
    lockFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-lock" ); //$NON-NLS-1$
    deleteFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-delete" ); //$NON-NLS-1$
    renameFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-rename" ); //$NON-NLS-1$

    messageBox = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$

    createBindings();
  } catch ( Exception e ) {
    throw new RuntimeException( e );
  }
}
 

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

示例14: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init(Repository rep) throws ControllerInitializationException{
  this.repository = rep;
}
 

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

示例15: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init(Repository repository) throws ControllerInitializationException {
  this.repository = repository;
}
 

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

示例16: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init( Repository rep ) throws ControllerInitializationException {
  this.repository = rep;
}
 

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

示例17: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
public void init( Repository repository ) throws ControllerInitializationException {
  this.repository = repository;
}
 

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

示例18: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
@Override
public void init( Repository repository ) throws ControllerInitializationException {
  this.repository = repository;
}
 

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

示例19: initControllers

点赞 1

import org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException; //导入依赖的package包/类
/**
 * Initialize the controller
 * @throws ControllerInitializationException
 */
public void initControllers(Repository rep) throws ControllerInitializationException;
 

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


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