本文整理汇总了Java中org.pentaho.ui.xul.swt.SwtBindingFactory.setDocument方法的典型用法代码示例。如果您正苦于以下问题:Java SwtBindingFactory.setDocument方法的具体用法?Java SwtBindingFactory.setDocument怎么用?Java SwtBindingFactory.setDocument使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.ui.xul.swt.SwtBindingFactory
的用法示例。
在下文中一共展示了SwtBindingFactory.setDocument方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doLazyInit
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的package包/类
@Override
protected boolean doLazyInit() {
boolean serviceInitialized = initService();
if (!serviceInitialized) {
return false;
}
try {
managed = service.isManaged();
createModel();
messageBox = (XulMessageBox) document.createElement("messagebox");//$NON-NLS-1$
bf = new SwtBindingFactory();
bf.setDocument(this.getXulDomContainer().getDocumentRoot());
} catch (Exception e) {
throw new RuntimeException(e);
}
if (bf != null) {
createBindings();
}
if(!managed) {
showButtons(false, false, false);
}
setInitialDeck();
return true;
}
示例2: init
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的package包/类
public void init(Repository repository) throws ControllerInitializationException {
try {
this.repository = repository;
mainController = (MainController) this.getXulDomContainer().getEventHandler("mainController");
try {
this.repositoryDirectory = UIObjectRegistry.getInstance().constructUIRepositoryDirectory(
repository.loadRepositoryDirectoryTree(), null, repository);
} catch (UIObjectCreationException uoe) {
this.repositoryDirectory = new UIRepositoryDirectory(repository.loadRepositoryDirectoryTree(), null, repository);
}
dirMap = new HashMap<ObjectId, UIRepositoryDirectory>();
populateDirMap(repositoryDirectory);
bf = new SwtBindingFactory();
bf.setDocument(this.getXulDomContainer().getDocumentRoot());
messageBox = (XulMessageBox) document.createElement("messagebox");//$NON-NLS-1$
createBindings();
} catch (Exception e) {
throw new ControllerInitializationException(e);
}
}
示例3: doLazyInit
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的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;
}
示例4: doLazyInit
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的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;
}
}
示例5: doLazyInit
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的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;
}
示例6: init
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的package包/类
public void init() {
bf = new SwtBindingFactory();
bf.setDocument(this.getXulDomContainer().getDocumentRoot());
createBindings();
if(dialog != null && repository != null) {
dialog.setTitle(BaseMessages.getString(PKG, "RepositoryExplorerDialog.DevTitle", repository.getName())); //$NON-NLS-1$
}
}
示例7: doLazyInit
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的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;
}
示例8: doLazyInit
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的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;
}
示例9: doLazyInit
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的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;
}
示例10: init
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的package包/类
@SuppressWarnings( "deprecation" )
public void init( Repository repository ) throws ControllerInitializationException {
try {
this.repository = repository;
mainController = (MainController) this.getXulDomContainer().getEventHandler( "mainController" );
RepositoryDirectoryInterface root;
try {
if ( repository instanceof RepositoryExtended ) {
root = ( (RepositoryExtended) repository ).loadRepositoryDirectoryTree( "/", "*.ktr|*.kjb", -1,
BooleanUtils.isTrue( repository.getUserInfo().isAdmin() ), true, true );
} else {
root = repository.loadRepositoryDirectoryTree();
}
this.repositoryDirectory =
UIObjectRegistry.getInstance().constructUIRepositoryDirectory( root,
null, repository );
} catch ( UIObjectCreationException uoe ) {
this.repositoryDirectory =
new UIRepositoryDirectory( repository.loadRepositoryDirectoryTree(), null, repository );
}
dirMap = new HashMap<ObjectId, UIRepositoryDirectory>();
populateDirMap( repositoryDirectory );
bf = new SwtBindingFactory();
bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
messageBox = (XulMessageBox) document.createElement( "messagebox" );
createBindings();
} catch ( Exception e ) {
throw new ControllerInitializationException( e );
}
}
示例11: init
import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入方法依赖的package包/类
public void init() {
bf = new SwtBindingFactory();
bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
createBindings();
if ( dialog != null && repository != null ) {
dialog.setTitle( BaseMessages.getString( PKG, "RepositoryExplorerDialog.DevTitle", repository.getName() ) );
}
}