Class RepresentationCreationPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.palladiosimulator.editors.sirius.ui.wizard.model.RepresentationCreationPage
- All Implemented Interfaces:
EventListener
,IDialogPage
,IMessageProvider
,IWizardPage
,ModifyListener
,SelectionListener
,SWTEventListener
public class RepresentationCreationPage
extends WizardPage
implements SelectionListener, ModifyListener
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createControl
(Composite parent) Returns the entered representation name.boolean
boolean
Returns whether the user wants to create a representation or not.void
void
setDefaultRepresentationName
(String defaultRepresentationName) void
void
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
-
Constructor Details
-
RepresentationCreationPage
protected RepresentationCreationPage()
-
-
Method Details
-
isPageComplete
public boolean isPageComplete()- Specified by:
isPageComplete
in interfaceIWizardPage
- Overrides:
isPageComplete
in classWizardPage
-
setDefaultRepresentationName
-
createControl
- Specified by:
createControl
in interfaceIDialogPage
-
widgetSelected
- Specified by:
widgetSelected
in interfaceSelectionListener
-
widgetDefaultSelected
- Specified by:
widgetDefaultSelected
in interfaceSelectionListener
-
getRepresentationName
Returns the entered representation name. Only valid ifisRepresentationCreationEnabled()
returns true.- Returns:
- the representation name
- See Also:
-
isRepresentationCreationEnabled
public boolean isRepresentationCreationEnabled()Returns whether the user wants to create a representation or not.- Returns:
- the decision
-
modifyText
- Specified by:
modifyText
in interfaceModifyListener
-