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();
}
}
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);
}
}
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);
}
}
}
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);
}
}
}
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();
}
Aggregations