public class NewObjectWizard extends Wizard implements ITextGridWizard, IPageChangingListener
setProject(TextGridProject)
to pre-select a
project.DEFAULT_IMAGE
Constructor and Description |
---|
NewObjectWizard() |
Modifier and Type | Method and Description |
---|---|
void |
addPages() |
boolean |
canFinish() |
boolean |
defaultPerformFinish()
Deprecated.
|
boolean |
defaultPerformFinish(String perspectiveID)
Tries to open a matching editor for the current
TextGridObject . |
TextGridObject |
getTextGridObject()
Returns the current
TextGridObject handled by this wizard. |
info.textgrid.lab.ui.core.dialogs.NewObjectWizard.TypeSpecificAspects |
getTypeSpecificAspects() |
void |
handlePageChanging(PageChangingEvent event) |
protected void |
initTypeSpecificAspects() |
boolean |
performFinish() |
void |
setContentType(TGContentType contentType)
Set the content type that should be pre-selected.
|
void |
setProject(TextGridProject project)
Set the project that should be pre-selected.
|
boolean |
setTextGridObject(TextGridObject textGridObject)
Tries to set this wizard's current TextGridObject.
|
void |
showDialog(Shell activeShell,
TextGridProject project,
TGContentType contentType)
Displays the wizard.
|
addPage, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
public void addPages()
public boolean defaultPerformFinish()
defaultPerformFinish(String perspectiveID)
public boolean defaultPerformFinish(String perspectiveID)
TextGridObject
.
This implementation is used for new files which do not have a custom new
dialog contributor.perspectiveID
- the perspective to be opened for the new objectpublic void setProject(TextGridProject project)
public void setContentType(TGContentType contentType)
public boolean setTextGridObject(TextGridObject textGridObject)
ITextGridWizard
setTextGridObject
in interface ITextGridWizard
textGridObject
- the new TextGridObject
for the wizard.public TextGridObject getTextGridObject()
ITextGridWizard
TextGridObject
handled by this wizard.getTextGridObject
in interface ITextGridWizard
public void showDialog(Shell activeShell, TextGridProject project, TGContentType contentType)
activeShell
- project
- public void handlePageChanging(PageChangingEvent event)
handlePageChanging
in interface IPageChangingListener
protected void initTypeSpecificAspects()
public boolean performFinish()
performFinish
in interface IWizard
performFinish
in class Wizard
public info.textgrid.lab.ui.core.dialogs.NewObjectWizard.TypeSpecificAspects getTypeSpecificAspects()