Java Code Examples for org.eclipse.jface.wizard.WizardDialog.setBlockOnOpen()

The following are Jave code examples for showing how to use setBlockOnOpen() of the org.eclipse.jface.wizard.WizardDialog class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: hadoop-2.6.0-cdh5.4.3   File: NewLocationAction.java   View Source Code Vote up 6 votes
@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();
}
 
Example 2
Project: hadoop-EAR   File: NewLocationAction.java   View Source Code Vote up 6 votes
@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();
}
 
Example 3
Project: eZooKeeper   File: BaseWizardAction.java   View Source Code Vote up 5 votes
@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();
}
 
Example 4
Project: eZooKeeper   File: ZooKeeperConnectionServerComposite.java   View Source Code Vote up 5 votes
@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;
}
 
Example 5
Project: hadoop-2.6.0-cdh5.4.3   File: EditLocationAction.java   View Source Code Vote up 5 votes
@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();
}
 
Example 6
Project: hadoop-EAR   File: EditLocationAction.java   View Source Code Vote up 5 votes
@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();
}
 
Example 7
Project: eclipse-extras   File: DynamicWorkingSetPagePDETest.java   View Source Code Vote up 5 votes
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 );
}