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


Java XulDialog.getRootObject方法代码示例

本文整理汇总了Java中org.pentaho.ui.xul.containers.XulDialog.getRootObject方法的典型用法代码示例。如果您正苦于以下问题:Java XulDialog.getRootObject方法的具体用法?Java XulDialog.getRootObject怎么用?Java XulDialog.getRootObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.ui.xul.containers.XulDialog的用法示例。


在下文中一共展示了XulDialog.getRootObject方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initializeXul

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
private void initializeXul() throws XulException {
  SwtXulLoader loader = new SwtXulLoader();
  loader.registerClassLoader(getClass().getClassLoader());
  loader.setSettingsManager(XulSpoonSettingsManager.getInstance());
  loader.setOuterContext(parentShell);
  container = loader.loadXul( xulFile, new XulSpoonResourceBundle(getClassForMessages()));
  bf.setDocument(container.getDocumentRoot());
  
  for(XulEventHandler h : getEventHandlers()){
    container.addEventHandler(h); 
  }

  runner = new SwtXulRunner();
  runner.addContainer(container);

  // try and get the dialog
  xulDialog = (XulDialog) container.getDocumentRoot().getRootElement();
  dialogShell = (Shell) xulDialog.getRootObject();

  runner.initialize();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:22,代码来源:BaseStepXulDialog.java

示例2: 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

示例3: getShell

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public Shell getShell() {
  XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById("repository-login-dialog"); //$NON-NLS-1$
  return (Shell) dialog.getRootObject();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:5,代码来源:RepositoriesDialog.java

示例4: getShell

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public Shell getShell() {
  XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "repository-login-dialog" );
  return (Shell) dialog.getRootObject();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:RepositoriesDialog.java

示例5: getShell

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public Shell getShell() {
  XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "repository-config-dialog" ); //$NON-NLS-1$
  return (Shell) dialog.getRootObject();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:PurRepositoryDialog.java

示例6: open

import org.pentaho.ui.xul.containers.XulDialog; //导入方法依赖的package包/类
public boolean open() {
	try {

		SwtXulLoader theLoader = new SwtXulLoader();
     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);

		theExplorerDialog.show();

	} catch (Exception e) {
		logger.info(e);
		e.printStackTrace();
	}
	return this.controller.getSelectedTable() != null;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:35,代码来源:XulDatabaseExplorerDialog.java


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