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


Java WizardDialog.setBlockOnOpen方法代码示例

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


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

示例1: run

import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
@Override
public void run() {
  WizardDialog dialog = new WizardDialog(null, new Wizard() {
    private HadoopLocationWizard page = new HadoopLocationWizard();

    @Override
    public void addPages() {
      super.addPages();
      setWindowTitle("New Hadoop location...");
      addPage(page);
    }

    @Override
    public boolean performFinish() {
      page.performFinish();
      return true;
    }

  });

  dialog.create();
  dialog.setBlockOnOpen(true);
  dialog.open();

  super.run();
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:27,代码来源:NewLocationAction.java

示例2: runWithStructuredSelection

import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
@Override
public void runWithStructuredSelection(IStructuredSelection selection) {
    IWorkbenchWizard wizard = getWizard(selection);
    wizard.init(getWorkbench(), selection);
    WizardDialog wizardDialog = new WizardDialog(getActiveShell(), wizard);

    wizardDialog.setBlockOnOpen(true);
    wizardDialog.open();
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:10,代码来源:BaseWizardAction.java

示例3: addElement

import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
@Override
protected ZooKeeperServerDescriptor addElement() {
    ZooKeeperServerNewWizard serverWizard = new ZooKeeperServerNewWizard();

    WizardDialog wizardDialog = new WizardDialog(getShell(), serverWizard);
    wizardDialog.setBlockOnOpen(true);
    if (wizardDialog.open() == Window.OK) {

        return serverWizard.getServerDescriptor();
    }

    return null;
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:14,代码来源:ZooKeeperConnectionServerComposite.java

示例4: run

import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
@Override
public void run() {

  final HadoopServer server = serverView.getSelectedServer();
  if (server == null)
    return;

  WizardDialog dialog = new WizardDialog(null, new Wizard() {
    private HadoopLocationWizard page = new HadoopLocationWizard(server);

    @Override
    public void addPages() {
      super.addPages();
      setWindowTitle("Edit Hadoop location...");
      addPage(page);
    }

    @Override
    public boolean performFinish() {
      page.performFinish();
      return true;
    }
  });

  dialog.create();
  dialog.setBlockOnOpen(true);
  dialog.open();

  super.run();
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:31,代码来源:EditLocationAction.java

示例5: openPageInWizardDialog

import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
private void openPageInWizardDialog() {
  Wizard wizard = new Wizard() {
    @Override
    public boolean performFinish() {
      return true;
    }
  };
  WizardDialog wizardDialog = new WizardDialog( displayHelper.createShell(), wizard );
  wizard.setContainer( wizardDialog );
  wizard.addPage( page );
  page.setWizard( wizard );
  wizardDialog.setBlockOnOpen( false );
  wizardDialog.open();
  wizardDialog.showPage( page );
}
 
开发者ID:rherrmann,项目名称:eclipse-extras,代码行数:16,代码来源:DynamicWorkingSetPagePDETest.java


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