當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。