当前位置: 首页>>代码示例>>Java>>正文


Java XulDialog.show方法代码示例

本文整理汇总了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);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:22,代码来源:XulPreviewRowsDialog.java

示例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);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:23,代码来源:XulStepFieldsDialog.java

示例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);
	}
}
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:26,代码来源:PreviewWizardController.java

示例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 );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:24,代码来源:XulPreviewRowsDialog.java

示例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);
  }
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:14,代码来源:ConnectionController.java

示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:40,代码来源:XulDatabaseExplorerDialog.java

示例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();
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:13,代码来源:ExportHandler.java

示例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");
  }
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:40,代码来源:ExportHandler.java

示例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();

}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:6,代码来源:RepositoryExplorer.java

示例10: openDialog

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void openDialog(){
  dialog = (XulDialog) document.getElementById("algorithm_dialog");
  dialog.show();
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:5,代码来源:AlgorithmController.java

示例11: show

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void show() {
  XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "mqlEditorDialog" );
  dialog.show();

}
 
开发者ID:pentaho,项目名称:mql-editor,代码行数:6,代码来源:OldSwtMqlEditor.java

示例12: show

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void show() {
  XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "mqlEditorDialog" );
  dialog.show();
}
 
开发者ID:pentaho,项目名称:mql-editor,代码行数:5,代码来源:AbstractMqlEditor.java

示例13: show

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public void show() {
  XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "repository-explorer-dialog" );
  dialog.show();

}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:6,代码来源:RepositoryExplorer.java

示例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();
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:7,代码来源:ConnectionController.java

示例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();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:PurRepositoryDialog.java


注:本文中的org.pentaho.ui.xul.containers.XulDialog.show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。