Search in sources :

Example 1 with XulDialog

use of org.pentaho.ui.xul.containers.XulDialog 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);
    }
}
Also used : XulDialog(org.pentaho.ui.xul.containers.XulDialog) KettleXulLoader(org.pentaho.di.ui.xul.KettleXulLoader) SwtXulRunner(org.pentaho.ui.xul.swt.SwtXulRunner)

Example 2 with XulDialog

use of org.pentaho.ui.xul.containers.XulDialog in project pentaho-kettle by pentaho.

the class XulStepFieldsController method editOriginStep.

public void editOriginStep() {
    StepFieldNode theSelectedStep = (StepFieldNode) this.stepFieldsTree.getSelectedItem();
    if (theSelectedStep != null) {
        XulDialog theStepsDialog = (XulDialog) document.getElementById("stepFieldsDialog");
        theStepsDialog.hide();
    }
}
Also used : XulDialog(org.pentaho.ui.xul.containers.XulDialog)

Example 3 with XulDialog

use of org.pentaho.ui.xul.containers.XulDialog in project pentaho-kettle by pentaho.

the class PurRepositoryDialog method hide.

public void hide() {
    // $NON-NLS-1$
    XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById("repository-config-dialog");
    dialog.hide();
}
Also used : XulDialog(org.pentaho.ui.xul.containers.XulDialog)

Example 4 with XulDialog

use of org.pentaho.ui.xul.containers.XulDialog in project pentaho-kettle by pentaho.

the class PurRepositoryDialog method show.

public void show() {
    // $NON-NLS-1$
    XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById("repository-config-dialog");
    dialog.show();
}
Also used : XulDialog(org.pentaho.ui.xul.containers.XulDialog)

Example 5 with XulDialog

use of org.pentaho.ui.xul.containers.XulDialog in project pentaho-kettle by pentaho.

the class RepositoryExplorer method show.

public void show() {
    XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById("repository-explorer-dialog");
    dialog.show();
}
Also used : XulDialog(org.pentaho.ui.xul.containers.XulDialog)

Aggregations

XulDialog (org.pentaho.ui.xul.containers.XulDialog)16 KettleXulLoader (org.pentaho.di.ui.xul.KettleXulLoader)3 XulLabel (org.pentaho.ui.xul.components.XulLabel)3 SwtXulRunner (org.pentaho.ui.xul.swt.SwtXulRunner)3 Shell (org.eclipse.swt.widgets.Shell)2 KettleException (org.pentaho.di.core.exception.KettleException)2 XulDomContainer (org.pentaho.ui.xul.XulDomContainer)2 XulException (org.pentaho.ui.xul.XulException)2 Bindable (org.pentaho.ui.xul.stereotype.Bindable)2 File (java.io.File)1 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 RowLayout (org.eclipse.swt.layout.RowLayout)1 Button (org.eclipse.swt.widgets.Button)1 Label (org.eclipse.swt.widgets.Label)1 IDatasourceSummary (org.pentaho.platform.dataaccess.datasource.wizard.IDatasourceSummary)1 MultiTableDatasourceDTO (org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultiTableDatasourceDTO)1 DatabaseConnectionDialog (org.pentaho.ui.database.DatabaseConnectionDialog)1 XulTextbox (org.pentaho.ui.xul.components.XulTextbox)1 XulRoot (org.pentaho.ui.xul.containers.XulRoot)1