use of org.pentaho.ui.xul.containers.XulDialog in project data-access by pentaho.
the class MessageHandler method closeSuccessDetailsDialog.
@Bindable
public void closeSuccessDetailsDialog() {
XulDialog detailedSuccessDialog = (XulDialog) document.getElementById("successDetailsDialog");
detailedSuccessDialog.hide();
}
use of org.pentaho.ui.xul.containers.XulDialog in project pentaho-kettle by pentaho.
the class XulDatabaseExplorerDialog method open.
public boolean open() {
try {
KettleXulLoader theLoader = new KettleXulLoader();
theLoader.setSettingsManager(XulSpoonSettingsManager.getInstance());
theLoader.setSettingsManager(new DefaultSettingsManager(new File(Const.getKettleDirectory() + Const.FILE_SEPARATOR + "xulSettings.properties")));
theLoader.setOuterContext(this.shell);
this.container = theLoader.loadXul(XUL, new XulDatabaseExplorerResourceBundle());
XulDialog theExplorerDialog = (XulDialog) this.container.getDocumentRoot().getElementById("databaseExplorerDialog");
SpoonPluginManager.getInstance().applyPluginsForContainer("database_dialog", container);
this.controller = new XulDatabaseExplorerController((Shell) theExplorerDialog.getRootObject(), this.databaseMeta, this.databases, look);
this.container.addEventHandler(this.controller);
this.runner = new SwtXulRunner();
this.runner.addContainer(this.container);
this.runner.initialize();
this.controller.setSelectedSchemaAndTable(schemaName, selectedTable);
// show dialog if connection is success only.
if (controller.getActionStatus() == UiPostActionStatus.OK) {
theExplorerDialog.show();
}
} catch (Exception e) {
LogChannel.GENERAL.logError("Error exploring database", e);
}
return this.controller.getSelectedTable() != null;
}
use of org.pentaho.ui.xul.containers.XulDialog in project pentaho-kettle by pentaho.
the class XulPreviewRowsController method accept.
public void accept() {
XulDialog theDialog = (XulDialog) super.document.getElementById("previewRowsDialog");
theDialog.setVisible(false);
}
use of org.pentaho.ui.xul.containers.XulDialog in project pentaho-kettle by pentaho.
the class XulStepFieldsController method cancelDialog.
public void cancelDialog() {
XulDialog theDialog = (XulDialog) super.document.getElementById("stepFieldsDialog");
theDialog.setVisible(false);
}
use of org.pentaho.ui.xul.containers.XulDialog in project pentaho-kettle by pentaho.
the class XulStepFieldsDialog method open.
public void open(boolean isAcceptButtonHidden) {
try {
KettleXulLoader theLoader = new KettleXulLoader();
theLoader.setOuterContext(this.shell);
theLoader.setSettingsManager(XulSpoonSettingsManager.getInstance());
this.container = theLoader.loadXul(XUL);
this.controller = new XulStepFieldsController(this.shell, this.databaseMeta, this.schemaTableCombo, this.rowMeta);
this.controller.setShowAcceptButton(isAcceptButtonHidden);
this.container.addEventHandler(this.controller);
this.runner = new SwtXulRunner();
this.runner.addContainer(this.container);
this.runner.initialize();
XulDialog thePreviewDialog = (XulDialog) this.container.getDocumentRoot().getElementById("stepFieldsDialog");
thePreviewDialog.show();
((SwtDialog) thePreviewDialog).dispose();
} catch (Exception e) {
logger.info(e);
}
}
Aggregations