本文整理汇总了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();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}