Examples of IWorkbenchWizard


Examples of org.eclipse.ui.IWorkbenchWizard

    linkCreateNewRuntime.addHyperlinkListener(new HyperlinkAdapter() {

      @Override
      public void linkActivated(HyperlinkEvent e) {
        try {
          IWorkbenchWizard wizard = WorkbenchUtils.openWizard(WGADesignerPlugin.getDefault().getWorkbench(), de.innovationgate.eclipse.wgadesigner.ResourceIDs.WIZARD_NEW_WGA_RUNTIME);
          if (wizard != null) {
            NewWGARuntime runtimeWizard = (NewWGARuntime) wizard;
            _selectedRuntime = runtimeWizard.getCreatedRuntime();
            updateRuntimeCombo();           
          }                   
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWizard

    IWizardDescriptor wizardDesc = workbench.getExportWizardRegistry().findWizard(id);
    if (wizardDesc == null) {
      wizardDesc = workbench.getNewWizardRegistry().findWizard(id);
    }
    if (wizardDesc != null) {
      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;
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWizard

    IWizardDescriptor wizardDesc = workbench.getExportWizardRegistry().findWizard(id);
    if (wizardDesc == null) {
      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.ui.IWorkbenchWizard

      if (wizardDescriptor == null) {
        throw new ExecutionException("unknown wizard: " + wizardId); //$NON-NLS-1$
      }

      try {
        IWorkbenchWizard wizard = wizardDescriptor.createWizard();
        wizard.init(PlatformUI.getWorkbench(),
            StructuredSelection.EMPTY);
       
        if (wizardDescriptor.canFinishEarly() && !wizardDescriptor.hasPages()) {
          wizard.performFinish();
          return null;
        }
       
        Shell parent = activeWindow.getShell();
        WizardDialog dialog = new WizardDialog(parent, wizard);
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWizard

        getContainer().showPage(placeHolderPage.getPreviousPage());
    }

    public void init( IWorkbench workbench, IStructuredSelection selection ) {
        if (wizard instanceof IWorkbenchWizard) {
            IWorkbenchWizard workbenchWizard = (IWorkbenchWizard) wizard;
            workbenchWizard.init(workbench, selection);
        }
    }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWizard

      if (wizardDescriptor == null) {
        throw new ExecutionException("unknown wizard: " + wizardId); //$NON-NLS-1$
      }

      try {
        IWorkbenchWizard wizard = wizardDescriptor.createWizard();
        wizard.init(PlatformUI.getWorkbench(), getSelectionToUse(event));
       
        if (wizardDescriptor.canFinishEarly() && !wizardDescriptor.hasPages()) {
          wizard.performFinish();
          return null;
        }
       
        Shell parent = activeWindow.getShell();
        WizardDialog dialog = new WizardDialog(parent, wizard);
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWizard

    setImageDescriptor(EclEmmaUIPlugin.getImageDescriptor(EclEmmaUIPlugin.ELCL_IMPORT));
    setDisabledImageDescriptor(EclEmmaUIPlugin.getImageDescriptor(EclEmmaUIPlugin.DLCL_IMPORT));
  }
 
  public void run() {
    IWorkbenchWizard wizard = new SessionImportWizard();
    wizard.init(window.getWorkbench(), StructuredSelection.EMPTY);
    WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
    dialog.open();
  }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWizard

    setImageDescriptor(EclEmmaUIPlugin.getImageDescriptor(EclEmmaUIPlugin.ELCL_EXPORT));
    setDisabledImageDescriptor(EclEmmaUIPlugin.getImageDescriptor(EclEmmaUIPlugin.DLCL_EXPORT));
  }
 
  public void run() {
    IWorkbenchWizard wizard = new SessionExportWizard();
    wizard.init(window.getWorkbench(), StructuredSelection.EMPTY);
    WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
    dialog.open();
  }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWizard

    setDisabledImageDescriptor(EclEmmaUIPlugin
        .getImageDescriptor(EclEmmaUIPlugin.DLCL_IMPORT));
  }

  public void run() {
    IWorkbenchWizard wizard = new SessionImportWizard();
    wizard.init(window.getWorkbench(), StructuredSelection.EMPTY);
    WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
    dialog.open();
  }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWizard

    setDisabledImageDescriptor(EclEmmaUIPlugin
        .getImageDescriptor(EclEmmaUIPlugin.DLCL_EXPORT));
  }

  public void run() {
    IWorkbenchWizard wizard = new SessionExportWizard();
    wizard.init(window.getWorkbench(), StructuredSelection.EMPTY);
    WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
    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.