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
Modifier and TypeFieldDescriptionstatic 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.protected AbstractNewWizardPage
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
ConstructorDescriptionAbstractNewWizard
(String windowTitle) Instantiates a new abstract new wizard. -
Method Summary
Modifier and TypeMethodDescriptionabstract String
getPrototypeDescriptor
(String name) 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
The Constant XMLNS_PART. -
COMMON_HEADER
The Constant COMMON_HEADER. -
COMMON_NDVV
The Constant COMMON_NDVV. -
COMMON_FULL_DESCRIPTOR
The Constant COMMON_FULL_DESCRIPTOR. -
COMMON_PARTIAL_DESCRIPTOR
The common partial descriptor. -
page
The page. -
selection
protected org.eclipse.jface.viewers.ISelection selectionThe selection.
-
-
Constructor Details
-
AbstractNewWizard
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 interfaceorg.eclipse.jface.wizard.IWizard
- Specified by:
performFinish
in classorg.eclipse.jface.wizard.Wizard
- Returns:
- true, if successful
-
getPrototypeDescriptor
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 interfaceorg.eclipse.ui.IWorkbenchWizard
-