• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SwtBindingFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.pentaho.ui.xul.swt.SwtBindingFactory的典型用法代码示例。如果您正苦于以下问题:Java SwtBindingFactory类的具体用法?Java SwtBindingFactory怎么用?Java SwtBindingFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SwtBindingFactory类属于org.pentaho.ui.xul.swt包,在下文中一共展示了SwtBindingFactory类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:25,代码来源:SecurityController.java


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


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


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


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


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


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


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


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


示例10: XulUI

import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入依赖的package包/类
public XulUI( Shell shell,  ModelerWorkspace model) throws ModelerException {
  try{
    SwtXulLoader loader = new SwtXulLoader();
    loader.registerClassLoader(getClass().getClassLoader());
    loader.setOuterContext(shell);
    container = loader.loadXul("org/pentaho/agilebi/modeler/res/panel.xul", new PDIMessages(ModelerWorkspace.class)); //$NON-NLS-1$

    
    controller = new SpoonModelerController(model);
    this.meta = new ModelerEngineMeta(controller);
    BindingFactory bf = new SwtBindingFactory();
    bf.setDocument(container.getDocumentRoot());
    container.addEventHandler(controller);
    controller.setBindingFactory(bf);
    controller.setWorkspaceHelper(new SpoonModelerWorkspaceHelper());
    
    ModelerUiHelper.configureControllers(container, model, bf, controller, new ColResolverController());
    
    runner = new SwtXulRunner();
    runner.addContainer(container);
    runner.initialize();
    container.loadPerspective("ov1");
  } catch(Exception e){
    logger.info("error initializing", e);
    throw new ModelerException(e);
  }
}
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:28,代码来源:XulUI.java


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


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


示例13: setup

import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入依赖的package包/类
@Before
public void setup() {

  BindingFactory bf = new SwtBindingFactory();
  controller = new AuthProviderController(  );
  controller.setResourceBundle( resourceBundle );
  providers = AuthHarness.getProviders( bf );

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


示例14: initializeXul

import org.pentaho.ui.xul.swt.SwtBindingFactory; //导入依赖的package包/类
protected void initializeXul() throws XulException {
  initializeXul( new KettleXulLoader(), new SwtBindingFactory(), new SwtXulRunner(), parent );
  dialogShell = (Shell) xulDialog.getRootObject();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:BaseStepXulDialog.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Spacing类代码示例发布时间:2022-05-22
下一篇:
Java StripesServletException类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap