本文整理汇总了Java中org.pentaho.ui.xul.containers.XulDialog.show方法的典型用法代码示例。如果您正苦于以下问题:Java XulDialog.show方法的具体用法?Java XulDialog.show怎么用?Java XulDialog.show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.ui.xul.containers.XulDialog
的用法示例。
在下文中一共展示了XulDialog.show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: open
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void open() {
try {
SwtXulLoader theLoader = new SwtXulLoader();
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);
}
}
示例2: open
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void open(boolean isAcceptButtonHidden) {
try {
SwtXulLoader theLoader = new SwtXulLoader();
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);
}
}
示例3: preview
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void preview() {
try {
AbstractReportDefinition element = processWizardSpecification();
SwtXulLoader theXulLoader = new SwtXulLoader();
theXulLoader.registerClassLoader(getClass().getClassLoader());
theXulLoader.setOuterContext(((XulRoot) document.getRootElement()).getRootObject());
theXulLoader.register("PRPT", "org.pentaho.agilebi.spoon.visualizations.xul.PrptViewerTag");
theXulContainer = theXulLoader.loadXul("org/pentaho/agilebi/spoon/wizard/prptPreview.xul");
theXulContainer.addEventHandler(new PreviewCloseHandler());
SwtXulRunner theRunner = new SwtXulRunner();
theRunner.addContainer(theXulContainer);
theRunner.initialize();
PrptViewerTag thePrptViewerTag = (PrptViewerTag) theXulContainer.getDocumentRoot().getElementById("prptViewer");
thePrptViewerTag.setMasterReport((MasterReport) element);
XulDialog theDialog = (XulDialog) theXulContainer.getDocumentRoot().getElementById("prpt-preview");
theDialog.show();
} catch (Exception e) {
e.printStackTrace();
logger.error("error previewing", e);
}
}
示例4: open
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
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 );
}
}
示例5: loadDatabaseDialog
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
@RequestHandler
public void loadDatabaseDialog() {
dataHandler.setData(connectionModel.getDatabaseMeta());
XulDialog dialog = (XulDialog) document.getElementById(GENERAL_DATASOURCE_WINDOW);
dialog.show();
DatabaseMeta databaseMeta = (DatabaseMeta) dataHandler.getData();
if (databaseMeta != null) {
connectionModel.setDatabaseMeta(databaseMeta);
}
}
示例6: open
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
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;
}
示例7: openDialog
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void openDialog() throws Exception {
if (getEnabledAggs().size() == 0) {
XulMessageBox msgBox = (XulMessageBox) document.createElement(ELEM_ID_MESSAGEBOX);
msgBox.setMessage(Messages.getString("ExportHandler.NoAggsDefinedOrEnabled")); //$NON-NLS-1$
msgBox.open();
logger.info("Exiting showRelationalPreview as there are no Aggs defined");
return;
}
XulDialog dialog = (XulDialog) document.getElementById(ELEM_ID_EXPORT_DIALOG);
dialog.show();
}
示例8: startExecuteDml
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void startExecuteDml() {
if (logger.isDebugEnabled()) {
logger.debug("enter startExecuteDdlDml");
}
XulDialog dialog = (XulDialog) document.getElementById(ELEM_ID_EXEC_PROGRESS_DIALOG);
Assert.notNull(dialog, "could not find element with id '" + ELEM_ID_EXEC_PROGRESS_DIALOG + "'");
final ExecutorCallback cb = new ExecutorCallback() {
public void executionComplete(Exception e) {
ExportHandler.this.done(e);
}
};
new Thread() {
@Override
public void run() {
if (logger.isDebugEnabled()) {
logger.debug("enter run");
}
List<String> sqls = ExportHandler.this.getOutput(false, true);
ExportHandler.this.ddlDmlExecutor.execute(sqls.toArray(new String[0]), cb);
if (logger.isDebugEnabled()) {
logger.debug("exit run");
}
}
}.start();
dialog.show();
if (logger.isDebugEnabled()) {
logger.debug("exit startExecuteDdlDml");
}
}
示例9: show
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void show() {
XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById("repository-explorer-dialog"); //$NON-NLS-1$
dialog.show();
}
示例10: openDialog
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void openDialog(){
dialog = (XulDialog) document.getElementById("algorithm_dialog");
dialog.show();
}
示例11: show
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void show() {
XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "mqlEditorDialog" );
dialog.show();
}
示例12: show
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void show() {
XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "mqlEditorDialog" );
dialog.show();
}
示例13: show
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void show() {
XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "repository-explorer-dialog" );
dialog.show();
}
示例14: showConnectionDialog
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
@RequestHandler
public void showConnectionDialog() {
logger.debug("In Thread showing mondrian dialog");
XulDialog connectionDialog = (XulDialog) document.getElementById(CONNECTION_DIALOG);
connectionDialog.show();
}
示例15: show
import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void show() {
XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "repository-config-dialog" ); //$NON-NLS-1$
dialog.show();
}