Class AbstractNewWizard

java.lang.Object
org.eclipse.jface.wizard.Wizard
org.apache.uima.taeconfigurator.wizards.AbstractNewWizard
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard
Direct Known Subclasses:
CasConsumerNewWizard, CasInitializerNewWizard, CollectionReaderNewWizard, FlowControllerNewWizard, FsIndexCollectionNewWizard, ResourceManagerConfigurationNewWizard, TAEConfiguratorNewWizard, TypePrioritiesNewWizard, TypeSystemNewWizard

public abstract class AbstractNewWizard extends org.eclipse.jface.wizard.Wizard implements org.eclipse.ui.INewWizard
Create a new file resource in the provided container. If the container resource (a folder or a project) is selected in the workspace when the wizard is opened, it will accept it as the target container. If a sample multi-page editor is registered for the same extension, it will be able to open it. Following Eclipse conventions, the new Wizard will actually create the resource in the file system and in the Eclipse resource space, with initial contents, and then open the resource with the CDE.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The Constant COMMON_FULL_DESCRIPTOR.
    static final String
    The Constant COMMON_HEADER.
    static final String
    The Constant COMMON_NDVV.
    static String
    The common partial descriptor.
    The page.
    protected org.eclipse.jface.viewers.ISelection
    The selection.
    static final String
    The Constant XMLNS_PART.

    Fields inherited from class org.eclipse.jface.wizard.Wizard

    DEFAULT_IMAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new abstract new wizard.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract String
    Gets the prototype descriptor.
    void
    init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection pSelection)
     
    boolean
    Called when 'Finish' button is pressed in the wizard.

    Methods inherited from class org.eclipse.jface.wizard.Wizard

    addPage, addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jface.wizard.IWizard

    addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
  • Field Details

    • XMLNS_PART

      public static final String XMLNS_PART
      The Constant XMLNS_PART.
    • COMMON_HEADER

      public static final String COMMON_HEADER
      The Constant COMMON_HEADER.
    • COMMON_NDVV

      public static final String COMMON_NDVV
      The Constant COMMON_NDVV.
    • COMMON_FULL_DESCRIPTOR

      public static final String COMMON_FULL_DESCRIPTOR
      The Constant COMMON_FULL_DESCRIPTOR.
    • COMMON_PARTIAL_DESCRIPTOR

      public static String COMMON_PARTIAL_DESCRIPTOR
      The common partial descriptor.
    • page

      protected AbstractNewWizardPage page
      The page.
    • selection

      protected org.eclipse.jface.viewers.ISelection selection
      The selection.
  • Constructor Details

    • AbstractNewWizard

      public AbstractNewWizard(String windowTitle)
      Instantiates a new abstract new wizard.
      Parameters:
      windowTitle - the window title
  • Method Details

    • performFinish

      public boolean performFinish()
      Called when 'Finish' button is pressed in the wizard. Create an operation and run it using wizard as execution context.
      Specified by:
      performFinish in interface org.eclipse.jface.wizard.IWizard
      Specified by:
      performFinish in class org.eclipse.jface.wizard.Wizard
      Returns:
      true, if successful
    • getPrototypeDescriptor

      public abstract String getPrototypeDescriptor(String name)
      Gets the prototype descriptor.
      Parameters:
      name - the name
      Returns:
      the prototype descriptor
    • init

      public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection pSelection)
      Specified by:
      init in interface org.eclipse.ui.IWorkbenchWizard