use of org.pentaho.ui.xul.swt.SwtXulRunner in project pentaho-kettle by pentaho.
the class XulPreviewRowsDialog method open.
public void open() {
try {
KettleXulLoader theLoader = new KettleXulLoader();
theLoader.setSettingsManager(XulSpoonSettingsManager.getInstance());
theLoader.setOuterContext(this.shell);
this.container = theLoader.loadXul(XUL);
this.controller = new XulPreviewRowsController(this.shell, this.databaseMeta, this.schema, this.table, this.limit);
this.container.addEventHandler(this.controller);
this.runner = new SwtXulRunner();
this.runner.addContainer(this.container);
this.runner.initialize();
XulDialog thePreviewDialog = (XulDialog) this.container.getDocumentRoot().getElementById("previewRowsDialog");
thePreviewDialog.show();
} catch (Exception e) {
logger.info(e);
}
}
use of org.pentaho.ui.xul.swt.SwtXulRunner in project pentaho-kettle by pentaho.
the class FileOverwriteDialogController method getInstance.
public static FileOverwriteDialogController getInstance(Shell shell, List<UIRepositoryObject> objects) {
try {
KettleXulLoader swtLoader = new KettleXulLoader();
swtLoader.setOuterContext(shell);
swtLoader.setSettingsManager(XulSpoonSettingsManager.getInstance());
XulDomContainer container = swtLoader.loadXul("org/pentaho/di/ui/repository/repositoryexplorer/xul/file-overwrite-dialog.xul", resourceBundle);
final XulRunner runner = new SwtXulRunner();
runner.addContainer(container);
FileOverwriteDialogController dialogController = new FileOverwriteDialogController(container, objects);
container.addEventHandler(dialogController);
runner.initialize();
return dialogController;
} catch (Exception e) {
return null;
}
}
use of org.pentaho.ui.xul.swt.SwtXulRunner in project pentaho-kettle by pentaho.
the class BaseStepXulDialog method initializeXul.
protected void initializeXul() throws XulException {
initializeXul(new KettleXulLoader(), new SwtBindingFactory(), new SwtXulRunner(), parent);
dialogShell = (Shell) xulDialog.getRootObject();
}
use of org.pentaho.ui.xul.swt.SwtXulRunner in project pdi-dataservice-server-plugin by pentaho.
the class DataServiceRemapNoStepsDialog method open.
void open() throws KettleException {
Document xulDocument;
try {
xulDocument = initXul(parent, new KettleXulLoader(), new SwtXulRunner());
} catch (XulException xulException) {
throw new KettleException("Failed to initialize RemapNoStepsDialog.", xulException);
}
((SwtDialog) xulDocument.getElementById(XUL_DIALOG_ID)).show();
}
use of org.pentaho.ui.xul.swt.SwtXulRunner in project pdi-dataservice-server-plugin by pentaho.
the class DataServiceRemapStepChooserDialog method open.
void open() throws KettleException {
SwtDialog dialog;
try {
dialog = (SwtDialog) initXul(parent, new KettleXulLoader(), new SwtXulRunner()).getElementById(XUL_DIALOG_ID);
} catch (XulException xulException) {
throw new KettleException("Failed to initialize DataServiceRemapStepChooserDialog.", xulException);
}
dialog.show();
}
Aggregations