本文整理汇总了Java中org.pentaho.ui.xul.swt.tags.SwtDialog类的典型用法代码示例。如果您正苦于以下问题:Java SwtDialog类的具体用法?Java SwtDialog怎么用?Java SwtDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SwtDialog类属于org.pentaho.ui.xul.swt.tags包,在下文中一共展示了SwtDialog类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: open
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的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
示例2: doLazyInit
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
protected boolean doLazyInit() {
// Load the SWT Shell from the explorer dialog
shell = ( (SwtDialog) document.getElementById( "repository-explorer-dialog" ) ).getShell();
try {
mainController = (MainController) this.getXulDomContainer().getEventHandler( "mainController" );
} catch ( XulException e ) {
return false;
}
enableButtons( true, false, false );
bf = new SwtBindingFactory();
bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
if ( bf != null ) {
createBindings();
}
return true;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:21,代码来源:PartitionsController.java
示例3: doLazyInit
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
protected boolean doLazyInit() {
try {
// Load the SWT Shell from the explorer dialog
mainController = (MainController) this.getXulDomContainer().getEventHandler( "mainController" );
shell = ( (SwtDialog) document.getElementById( "repository-explorer-dialog" ) ).getShell();
bf = new SwtBindingFactory();
bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
enableButtons( true, false, false );
if ( bf != null ) {
createBindings();
}
return true;
} catch ( Exception e ) {
if ( mainController == null || !mainController.handleLostRepository( e ) ) {
return false;
}
return false;
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:21,代码来源:ClustersController.java
示例4: doLazyInit
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
@Override
protected boolean doLazyInit() {
// Load the SWT Shell from the explorer dialog
shell = ( (SwtDialog) document.getElementById( "repository-explorer-dialog" ) ).getShell();
enableButtons( true, false, false );
bf = new SwtBindingFactory();
bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
try {
mainController = (MainController) this.getXulDomContainer().getEventHandler( "mainController" );
} catch ( XulException e ) {
return false;
}
if ( bf != null ) {
createBindings();
}
return true;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:SlavesController.java
示例5: open
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
public void open( boolean isAcceptButtonHidden ) {
try {
KettleXulLoader theLoader = new KettleXulLoader();
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:pentaho,项目名称:pentaho-kettle,代码行数:25,代码来源:XulStepFieldsDialog.java
示例6: doLazyInit
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
@Override
protected boolean doLazyInit() {
setRepReadOnly(this.repository.getRepositoryMeta().getRepositoryCapabilities().isReadOnly());
// Load the SWT Shell from the explorer dialog
shell = ((SwtDialog) document.getElementById("repository-explorer-dialog")).getShell(); //$NON-NLS-1$
bf = new DefaultBindingFactory();
bf.setDocument(this.getXulDomContainer().getDocumentRoot());
if (bf != null) {
createBindings();
}
enableButtons(true, false, false);
return true;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:16,代码来源:ConnectionsController.java
示例7: doLazyInit
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
protected boolean doLazyInit() {
// Load the SWT Shell from the explorer dialog
shell = ((SwtDialog) document.getElementById("repository-explorer-dialog")).getShell(); //$NON-NLS-1$
enableButtons(true, false, false);
bf = new SwtBindingFactory();
bf.setDocument(this.getXulDomContainer().getDocumentRoot());
if (bf != null) {
createBindings();
}
return true;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:14,代码来源:PartitionsController.java
示例8: doLazyInit
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
protected boolean doLazyInit() {
// Load the SWT Shell from the explorer dialog
shell = ((SwtDialog) document.getElementById("repository-explorer-dialog")).getShell(); //$NON-NLS-1$
bf = new SwtBindingFactory();
bf.setDocument(this.getXulDomContainer().getDocumentRoot());
enableButtons(true, false, false);
if (bf != null) {
createBindings();
}
return true;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:12,代码来源:ClustersController.java
示例9: doLazyInit
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
@Override
protected boolean doLazyInit() {
// Load the SWT Shell from the explorer dialog
shell = ((SwtDialog)document.getElementById("repository-explorer-dialog")).getShell(); //$NON-NLS-1$
enableButtons(true, false, false);
bf = new SwtBindingFactory();
bf.setDocument(this.getXulDomContainer().getDocumentRoot());
if (bf!=null){
createBindings();
}
return true;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:15,代码来源:SlavesController.java
示例10: hide
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
@Override
public void hide() {
if ( closing || dialog.getMainArea().isDisposed() || getParentShell( getParent() ).isDisposed()
|| ( getParent() instanceof SwtDialog && ( (SwtDialog) getParent() ).isDisposing() ) ) {
return;
}
// Save the window location & size in the Kettle world...
//
WindowProperty windowProperty = new WindowProperty( getShell() );
PropsUI.getInstance().setScreen( windowProperty );
super.hide();
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:KettleDialog.java
示例11: dispose
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
public void dispose(){
SwtDialog dialog = (SwtDialog) container.getDocumentRoot().getElementById("repository-explorer-dialog"); //$NON-NLS-1$
dialog.dispose();
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:5,代码来源:RepositoryExplorer.java
示例12: hidePreview
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
public void hidePreview() {
SwtDialog dialog = (SwtDialog) container.getDocumentRoot().getElementById( "mqlEditorDialog" );
dialog.setButtons( "accept,cancel" );
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:5,代码来源:OldSwtMqlEditor.java
示例13: dispose
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
public void dispose() {
SwtDialog dialog = (SwtDialog) container.getDocumentRoot().getElementById( "repository-explorer-dialog" );
dialog.dispose();
initialized = false;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:6,代码来源:RepositoryExplorer.java
示例14: createBindings
import org.pentaho.ui.xul.swt.tags.SwtDialog; //导入依赖的package包/类
private void createBindings() {
dialog = (XulDialog) document.getElementById( "repository-explorer-dialog" );
shell = ( (SwtDialog) document.getElementById( "repository-explorer-dialog" ) ).getShell();
// acceptButton = (XulButton) document.getElementById("repository-explorer-dialog_accept");
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:MainController.java
注:本文中的org.pentaho.ui.xul.swt.tags.SwtDialog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论