Class NewModuleProjectWizardStartup

java.lang.Object
org.eclipse.jface.wizard.Wizard
com.iizigo.project.NewModuleProjectWizardStartup
All Implemented Interfaces:
IShellProvider, IWizard, INewWizard, IWorkbenchWizard

public class NewModuleProjectWizardStartup extends Wizard implements INewWizard
Simplified New IIZI Project Wizard creating panels for requested targets and text tables with automatic translation of language texts.
Author:
Christopher Mindus
  • Constructor Details

    • NewModuleProjectWizardStartup

      public NewModuleProjectWizardStartup()
      Construction of wizard.
  • Method Details

    • init

      public void init(IWorkbench workbench, IStructuredSelection selection)
      New project doesn't care about selection...
      Specified by:
      init in interface IWorkbenchWizard
    • addPages

      public void addPages()
      Overridden to add the IIZI extension pages.
      Specified by:
      addPages in interface IWizard
      Overrides:
      addPages in class Wizard
    • performFinish

      public boolean performFinish()
      Performs any actions appropriate in response to the user having pressed the Finish button, or refuse if finishing now is not permitted. Normally this method is only called on the container's current wizard. However if the current wizard is a nested wizard this method will also be called on all wizards in its parent chain. Such parents may use this notification to save state etc. However, the value the parents return from this method is ignored.
      Specified by:
      performFinish in interface IWizard
      Specified by:
      performFinish in class Wizard
    • createModuleProject

      public static void createModuleProject(UIFeedBack<String> feedBack, NewModuleProjectWizardStartupPage1 page1, NewModuleProjectWizardStartupPage2 page2) throws CoreException
      Creates the project with settings from page1 and 2.
      Parameters:
      feedBack - The feed-back instance,
      page1 - The new module wizard page 1.
      page2 - The new module wizard page 2.
      Throws:
      CoreException - For errors.
    • canFinish

      public boolean canFinish()
      Checks for OK to finish.
      Specified by:
      canFinish in interface IWizard
      Overrides:
      canFinish in class Wizard
    • performCancel

      public boolean performCancel()
      Performs any actions appropriate in response to the user having pressed the Cancel button, or refuse if canceling now is not permitted.
      Specified by:
      performCancel in interface IWizard
      Overrides:
      performCancel in class Wizard
      Returns:
      true to indicate the cancel request was accepted, and false to indicate that the cancel request was refused.