use of org.pentaho.ui.xul.XulDomContainer in project pentaho-kettle by pentaho.
the class TransHistoryDelegate method addToolBar.
private void addToolBar() {
try {
KettleXulLoader loader = new KettleXulLoader();
loader.setIconsSize(16, 16);
loader.setSettingsManager(XulSpoonSettingsManager.getInstance());
ResourceBundle bundle = new XulSpoonResourceBundle(Spoon.class);
XulDomContainer xulDomContainer = loader.loadXul(XUL_FILE_TRANS_GRID_TOOLBAR, bundle);
xulDomContainer.addEventHandler(this);
toolbar = (XulToolbar) xulDomContainer.getDocumentRoot().getElementById("nav-toolbar");
refreshButton = (XulToolbarbutton) xulDomContainer.getDocumentRoot().getElementById("refresh-history");
fetchNextBatchButton = (XulToolbarbutton) xulDomContainer.getDocumentRoot().getElementById("fetch-next-batch-history");
fetchAllButton = (XulToolbarbutton) xulDomContainer.getDocumentRoot().getElementById("fetch-all-history");
ToolBar swtToolBar = (ToolBar) toolbar.getManagedObject();
spoon.props.setLook(swtToolBar, Props.WIDGET_STYLE_TOOLBAR);
swtToolBar.layout(true, true);
} catch (Throwable t) {
log.logError(Const.getStackTracker(t));
new ErrorDialog(transHistoryComposite.getShell(), BaseMessages.getString(PKG, "Spoon.Exception.ErrorReadingXULFile.Title"), BaseMessages.getString(PKG, "Spoon.Exception.ErrorReadingXULFile.Message", XUL_FILE_TRANS_GRID_TOOLBAR), new Exception(t));
}
}
use of org.pentaho.ui.xul.XulDomContainer in project pdi-dataservice-server-plugin by pentaho.
the class DataServiceRemapNoStepsDialog method initXul.
Document initXul(Composite parent, XulLoader xulLoader, XulRunner xulRunner) throws XulException {
xulLoader.setOuterContext(parent);
xulLoader.registerClassLoader(getClass().getClassLoader());
XulDomContainer container = xulLoader.loadXul(XUL_DIALOG_PATH, createResourceBundle());
container.addEventHandler(controller);
xulRunner.addContainer(container);
xulRunner.initialize();
return container.getDocumentRoot();
}
use of org.pentaho.ui.xul.XulDomContainer in project pdi-dataservice-server-plugin by pentaho.
the class DataServiceRemapStepChooserDialog method initXul.
Document initXul(Composite parent, XulLoader xulLoader, XulRunner xulRunner) throws XulException {
xulLoader.setOuterContext(parent);
xulLoader.registerClassLoader(getClass().getClassLoader());
XulDomContainer container = xulLoader.loadXul(XUL_DIALOG_PATH, createResourceBundle());
container.addEventHandler(controller);
xulRunner.addContainer(container);
xulRunner.initialize();
return container.getDocumentRoot();
}
use of org.pentaho.ui.xul.XulDomContainer in project pdi-dataservice-server-plugin by pentaho.
the class DataServiceDialog method loadXul.
protected DataServiceDialog loadXul(Shell shell, XulLoader xulLoader, XulRunner runner) throws XulException {
xulLoader.setOuterContext(shell);
xulLoader.registerClassLoader(DataServiceDialog.class.getClassLoader());
XulDomContainer container = xulLoader.loadXul(XUL_DIALOG_PATH, createResourceBundle(PKG));
container.addEventHandler(controller);
runner.addContainer(container);
runner.initialize();
return this;
}
use of org.pentaho.ui.xul.XulDomContainer in project pdi-dataservice-server-plugin by pentaho.
the class DataServiceRemapConfirmationDialog method initXul.
Document initXul(Composite parent, XulLoader xulLoader, XulRunner xulRunner) throws XulException {
xulLoader.setOuterContext(parent);
xulLoader.registerClassLoader(getClass().getClassLoader());
XulDomContainer container = xulLoader.loadXul(XUL_DIALOG_PATH, createResourceBundle());
container.addEventHandler(controller);
xulRunner.addContainer(container);
xulRunner.initialize();
return container.getDocumentRoot();
}
Aggregations