Examples of WizardDialog


Examples of entagged.listing.gui.wizard.WizardDialog

    /**
     * Creates the wizard dialog.
     */
    private void initialize() {
        this.dialog = new WizardDialog();
        this.dialog.setTitle(LangageManager.getProperty("listgen.dialogtitle"));
        this.dialog.setTask(this.reportTask = new ReportTask(this));
        this.dialog.setSize(500, 300);
        centerDialog(dialog);
        this.dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
View Full Code Here

Examples of lcmc.common.ui.WizardDialog

        this.blockDevInfo1 = blockDevInfo1;
        this.blockDevInfo2 = blockDevInfo2;
    }

    public void showDialogs() {
        WizardDialog dialog;
        if (!globalInfo.getDrbdResources().isEmpty() && globalInfo.atLeastVersion("8.4")) {
            startDialog.init(null, blockDevInfo1, blockDevInfo2);
            dialog = startDialog;
        } else {
            final List<BlockDevInfo> blockDevices = new ArrayList<BlockDevInfo>(Arrays.asList(blockDevInfo1,
                                                                                              blockDevInfo2));
            final ResourceInfo resourceInfo = globalInfo.getNewDrbdResource(
                                                            VolumeInfo.getHostsFromBlockDevices(blockDevices));
            final VolumeInfo dvi = globalInfo.getNewDrbdVolume(resourceInfo, blockDevices);
            resourceInfo.addDrbdVolume(dvi);
            globalInfo.addDrbdResource(resourceInfo);
            application.invokeAndWait(new Runnable() {
                @Override
                public void run() {
                    globalInfo.addDrbdVolume(dvi);
                }
            });
            resourceDialog.init(null, dvi);
            dialog = resourceDialog;
        }
        guiData.expandTerminalSplitPane(GUIData.TerminalSize.EXPAND);
        while (true) {
            LOG.debug1("showDialogs: dialog: " + dialog.getClass().getName());
            final WizardDialog newdialog = (WizardDialog) dialog.showDialog();
            if (dialog.isPressedCancelButton()) {
                dialog.cancelDialog();
                wizardCanceled = true;
                guiData.expandTerminalSplitPane(GUIData.TerminalSize.COLLAPSE);
                if (newdialog == null) {
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardDialog

      wizard.setDefaultPortletName(_portletNameToCreate);
      IEditorPart editorPart = workbench.getActiveWorkbenchWindow().getActivePage().getActiveEditor();
      if (editorPart != null && editorPart.getEditorInput() instanceof FileEditorInput) {
        FileEditorInput input = (FileEditorInput) editorPart.getEditorInput();
        wizard.init(workbench, new SingleStructuredSelection(input.getFile().getParent()));
        WizardDialog dialog = new WizardDialog(workbench.getActiveWorkbenchWindow().getShell(), wizard);
        dialog.open();
      }       
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardDialog

      IWorkbenchWizard wizard = wizardDesc.createWizard();
      IEditorPart editorPart = workbench.getActiveWorkbenchWindow().getActivePage().getActiveEditor();
      if (editorPart != null && editorPart.getEditorInput() instanceof FileEditorInput) {
        FileEditorInput input = (FileEditorInput) editorPart.getEditorInput();
        wizard.init(workbench, new SingleStructuredSelection(input.getFile().getParent()));
        WizardDialog dialog = new WizardDialog(workbench.getActiveWorkbenchWindow().getShell(), wizard);
        dialog.open();
        return wizard;
      } else {
        return null;
      }
    } else {
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardDialog

      wizardDesc = workbench.getNewWizardRegistry().findWizard(id);
    }
    if (wizardDesc != null) {
      IWorkbenchWizard wizard = wizardDesc.createWizard();
      wizard.init(workbench, selection);
      WizardDialog dialog = new WizardDialog(workbench.getActiveWorkbenchWindow().getShell(), wizard);
      dialog.open();
      return wizard;
    } else {
      throw new IllegalArgumentException("Wizard with id '" + id + "' not found.");
    }
  } 
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardDialog

  }

  public void run(IAction action) {
    if (_wgaRuntime != null) {
      WGARemoteServerSynchronizationWizard wizard = new WGARemoteServerSynchronizationWizard(_wgaRuntime);     
      WizardDialog dialog = new WizardDialog(WGADesignerPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);
      dialog.open();
    }
  }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardDialog

          return;
        }

        org.eclipse.update.internal.ui.wizards.InstallWizard2 wizard = new org.eclipse.update.internal.ui.wizards.InstallWizard2(fJob.getSearchRequest(), fJob.getUpdates(), fJob.isUpdate());
        WizardDialog dialog = new org.eclipse.update.internal.ui.wizards.ResizableInstallWizardDialog(getValidShell(), wizard, Messages.FindExtensionsAction_RSSOWL_ADDONS);
        dialog.create();

        /* A little hack to improve the UI of the Add-on Wizard */
        if (dialog.getCurrentPage() != null) {
          Control control = dialog.getCurrentPage().getControl();
          if (control != null && !control.isDisposed() && control instanceof Composite) {
            Composite container = ((Composite) control);
            Control[] children = container.getChildren();
            if (children != null && children.length == 1 && children[0] instanceof Composite) {
              container = (Composite) children[0];
              children = container.getChildren();
              if (children.length > 2) {

                /* Sash and Tree */
                if (children[1] instanceof SashForm) {
                  SashForm form = (SashForm) children[1];
                  form.setWeights(new int[] { 70, 30 });

                  Control[] formChilds = form.getChildren();
                  if (formChilds.length != 0 && formChilds[0] instanceof Tree) {
                    Tree tree = (Tree) formChilds[0];
                    if (tree.getItemCount() != 0) {
                      TreeItem root = tree.getItem(0);
                      root.setExpanded(true);
                    }
                  }
                }
              }
            }
          }
        }

        dialog.open();
      }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardDialog

   * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
   */
  public void run(IAction action) {
    CleanUpWizard cleanUpWizard = new CleanUpWizard();

    WizardDialog dialog = new WizardDialog(fWindow.getShell(), cleanUpWizard);
    dialog.create();
    dialog.open();
  }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardDialog

        ModificationLogsViewInput input = ( ModificationLogsViewInput ) getInput();
        if ( input.getBrowserConnection().getConnection() != null )
        {
            ExportModificationLogsWizard wizard = new ExportModificationLogsWizard();
            wizard.getSearch().setBrowserConnection( input.getBrowserConnection() );
            WizardDialog dialog = new WizardDialog( getShell(), wizard );
            dialog.setBlockOnOpen( true );
            dialog.create();
            dialog.open();
        }
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardDialog

        SearchLogsViewInput input = ( SearchLogsViewInput ) getInput();
        if ( input.getBrowserConnection().getConnection() != null )
        {
            ExportSearchLogsWizard wizard = new ExportSearchLogsWizard();
            wizard.getSearch().setBrowserConnection( input.getBrowserConnection() );
            WizardDialog dialog = new WizardDialog( getShell(), wizard );
            dialog.setBlockOnOpen( true );
            dialog.create();
            dialog.open();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.