public class NewTGOPage extends WizardPage implements ISelectionChangedListener, ITextGridWizardPage
ERROR, INFORMATION, NONE, WARNING
Modifier | Constructor and Description |
---|---|
protected |
NewTGOPage() |
|
NewTGOPage(TextGridProject project,
TGContentType contentType)
Creates a new wizard page to select a new dialog.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkCreatePermission(TextGridProject project) |
void |
createControl(Composite parent) |
protected static Object |
extractSelectedObject(SelectionChangedEvent event) |
void |
finishPage()
Finish whatever is needed to finish for this page.
|
TGContentType |
getContentType()
Returns the content type selected by the user (after the page has been
completed).
|
TextGridProject |
getProject()
Returns the project selected by the user (after the page has been
completed).
|
TextGridObject |
getTextGridObject() |
void |
init(ITextGridWizard wizard,
INewObjectPreparator preparator)
This method is called once for every page, before the page is added.
|
void |
loadObject(TextGridObject textGridObject)
Using this method the page is asked to load the data / initialize itself
from the given
TextGridObject . |
void |
selectionChanged(SelectionChangedEvent event) |
void |
setVisible(boolean visible) |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canFlipToNextPage, getName, getNextPage, getPreviousPage, getWizard, isPageComplete, setPreviousPage, setWizard
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle
protected NewTGOPage()
public NewTGOPage(TextGridProject project, TGContentType contentType)
project
- if not null, this project will be preselected.NewObjectWizard
public void setVisible(boolean visible)
setVisible
in interface IDialogPage
setVisible
in class DialogPage
public TextGridObject getTextGridObject()
public TextGridProject getProject()
public TGContentType getContentType()
public void createControl(Composite parent)
createControl
in interface IDialogPage
public void selectionChanged(SelectionChangedEvent event)
selectionChanged
in interface ISelectionChangedListener
protected void checkCreatePermission(TextGridProject project)
protected static Object extractSelectedObject(SelectionChangedEvent event)
public void finishPage()
ITextGridWizardPage
Implementors should be aware that this may be called multiple times. In the default implementation, it will be called whenever the page is left for the next page or when the finish button is pressed on the current page.
finishPage
in interface ITextGridWizardPage
public void init(ITextGridWizard wizard, INewObjectPreparator preparator)
ITextGridWizardPage
init
in interface ITextGridWizardPage
wizard
- The wizard this page has been added to.preparator
- The preparator class as defined in the extension point.public void loadObject(TextGridObject textGridObject)
ITextGridWizardPage
TextGridObject
. It is usually called when the page
is activated.loadObject
in interface ITextGridWizardPage
textGridObject
- The TextGridObject
for this page. If null
, the wizard page creates a new TextGridObject
.