Search in sources :

Example 1 with ControllerInitializationException

use of org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException in project pentaho-kettle by pentaho.

the class RepositoriesController method init.

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();
    }
}
Also used : ControllerInitializationException(org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException) XulException(org.pentaho.ui.xul.XulException) ControllerInitializationException(org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException)

Example 2 with ControllerInitializationException

use of org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException in project pentaho-kettle by pentaho.

the class BrowseController method init.

// end PDI-3326 hack
@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(false);
            } else {
                root = repository.loadRepositoryDirectoryTree();
            }
            this.repositoryDirectory = UIObjectRegistry.getInstance().constructUIRepositoryDirectory(root, null, repository);
        } catch (UIObjectCreationException uoe) {
            this.repositoryDirectory = new UIRepositoryDirectory(repository.loadRepositoryDirectoryTree(), null, repository);
        }
        this.repositoryDirectory.populateChildren();
        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);
    }
}
Also used : UIRepositoryDirectory(org.pentaho.di.ui.repository.repositoryexplorer.model.UIRepositoryDirectory) RepositoryDirectoryInterface(org.pentaho.di.repository.RepositoryDirectoryInterface) SwtBindingFactory(org.pentaho.ui.xul.swt.SwtBindingFactory) ControllerInitializationException(org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException) ObjectId(org.pentaho.di.repository.ObjectId) RepositoryExtended(org.pentaho.di.repository.RepositoryExtended) XulException(org.pentaho.ui.xul.XulException) ControllerInitializationException(org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException) UIObjectCreationException(org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException) KettleException(org.pentaho.di.core.exception.KettleException) UIObjectCreationException(org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException)

Example 3 with ControllerInitializationException

use of org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException in project pentaho-kettle by pentaho.

the class RevisionController method init.

public void init(Repository repository) throws ControllerInitializationException {
    try {
        this.repository = repository;
        // $NON-NLS-1$
        mainController = (MainController) this.getXulDomContainer().getEventHandler("mainController");
        // $NON-NLS-1$
        browseController = (BrowseController) this.getXulDomContainer().getEventHandler("browseController");
        bf = new DefaultBindingFactory();
        bf.setDocument(this.getXulDomContainer().getDocumentRoot());
        // $NON-NLS-1$
        messageBox = (XulMessageBox) document.createElement("messagebox");
        createBindings();
    } catch (Exception e) {
        if (mainController == null || !mainController.handleLostRepository(e)) {
            throw new ControllerInitializationException(e);
        }
    }
}
Also used : DefaultBindingFactory(org.pentaho.ui.xul.binding.DefaultBindingFactory) ControllerInitializationException(org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException) XulException(org.pentaho.ui.xul.XulException) KettleException(org.pentaho.di.core.exception.KettleException) ControllerInitializationException(org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException)

Example 4 with ControllerInitializationException

use of org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException in project pentaho-kettle by pentaho.

the class AbstractRepositoryExplorerUISupport method initControllers.

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);
        }
    }
}
Also used : ControllerInitializationException(org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException) XulException(org.pentaho.ui.xul.XulException) IUISupportController(org.pentaho.di.ui.repository.repositoryexplorer.IUISupportController)

Example 5 with ControllerInitializationException

use of org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException in project pentaho-kettle by pentaho.

the class RepositoryConfigController method init.

public void init() throws ControllerInitializationException {
    bf = new DefaultBindingFactory();
    bf.setDocument(this.getXulDomContainer().getDocumentRoot());
    try {
        // $NON-NLS-1$
        messageBox = (XulMessageBox) document.createElement("messagebox");
    } catch (Throwable th) {
        throw new ControllerInitializationException(th);
    }
    model = new RepositoryConfigModel();
    if (bf != null) {
        createBindings();
    }
    initializeModel();
}
Also used : DefaultBindingFactory(org.pentaho.ui.xul.binding.DefaultBindingFactory) ControllerInitializationException(org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException) RepositoryConfigModel(org.pentaho.di.ui.repository.pur.model.RepositoryConfigModel)

Aggregations

ControllerInitializationException (org.pentaho.di.ui.repository.repositoryexplorer.ControllerInitializationException)10 KettleException (org.pentaho.di.core.exception.KettleException)5 XulException (org.pentaho.ui.xul.XulException)5 DefaultBindingFactory (org.pentaho.ui.xul.binding.DefaultBindingFactory)5 AccessDeniedException (org.pentaho.di.ui.repository.repositoryexplorer.AccessDeniedException)2 ObjectId (org.pentaho.di.repository.ObjectId)1 RepositoryDirectoryInterface (org.pentaho.di.repository.RepositoryDirectoryInterface)1 RepositoryExtended (org.pentaho.di.repository.RepositoryExtended)1 RepositorySecurityManager (org.pentaho.di.repository.RepositorySecurityManager)1 RepositorySecurityProvider (org.pentaho.di.repository.RepositorySecurityProvider)1 RepositoryConfigModel (org.pentaho.di.ui.repository.pur.model.RepositoryConfigModel)1 IAclObject (org.pentaho.di.ui.repository.pur.repositoryexplorer.IAclObject)1 UIRepositoryObjectAclModel (org.pentaho.di.ui.repository.pur.repositoryexplorer.model.UIRepositoryObjectAclModel)1 UIRepositoryObjectAcls (org.pentaho.di.ui.repository.pur.repositoryexplorer.model.UIRepositoryObjectAcls)1 ILockService (org.pentaho.di.ui.repository.pur.services.ILockService)1 IUISupportController (org.pentaho.di.ui.repository.repositoryexplorer.IUISupportController)1 BrowseController (org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController)1 UIObjectCreationException (org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException)1 UIRepositoryDirectory (org.pentaho.di.ui.repository.repositoryexplorer.model.UIRepositoryDirectory)1 XulComponent (org.pentaho.ui.xul.XulComponent)1