use of org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController in project pentaho-kettle by pentaho.
the class BaseRepositoryExplorerUISupport method setup.
@Override
protected void setup() {
BrowseController browseController = new BrowseController();
ConnectionsController connectionsController = new ConnectionsController();
PartitionsController partitionsController = new PartitionsController();
SlavesController slavesController = new SlavesController();
ClustersController clustersController = new ClustersController();
handlers.add(browseController);
controllerNames.add(browseController.getName());
handlers.add(connectionsController);
controllerNames.add(connectionsController.getName());
handlers.add(partitionsController);
controllerNames.add(partitionsController.getName());
handlers.add(slavesController);
controllerNames.add(slavesController.getName());
handlers.add(clustersController);
controllerNames.add(clustersController.getName());
}
use of org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController in project pentaho-kettle by pentaho.
the class RepositoryLockController method init.
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", // $NON-NLS-1$
ILockService.class));
}
bindingFactory = new DefaultBindingFactory();
bindingFactory.setDocument(getXulDomContainer().getDocumentRoot());
// $NON-NLS-1$
XulEventHandler eventHandler = getXulDomContainer().getEventHandler("browseController");
if (eventHandler instanceof BrowseController) {
browseController = (BrowseController) eventHandler;
}
// Disable row dragging if it is locked and the user does not have permissions
// $NON-NLS-1$
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");
createBindings();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
Aggregations