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
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant COMMON_FULL_DESCRIPTOR.static final StringThe Constant COMMON_HEADER.static final StringThe Constant COMMON_NDVV.static StringThe common partial descriptor.protected AbstractNewWizardPageThe page.protected org.eclipse.jface.viewers.ISelectionThe selection.static final StringThe Constant XMLNS_PART.Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractNewWizard(String windowTitle) Instantiates a new abstract new wizard. -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetPrototypeDescriptor(String name) Gets the prototype descriptor.voidinit(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection pSelection) booleanCalled 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, setWindowTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
performFinishin interfaceorg.eclipse.jface.wizard.IWizard- Specified by:
performFinishin 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:
initin interfaceorg.eclipse.ui.IWorkbenchWizard
-