Class DefaultQualityWizardPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.palladiosimulator.analyzer.quality.presentation.DefaultQualityWizardPage
-
- All Implemented Interfaces:
EventListener
,IDialogPage
,IMessageProvider
,IWizardPage
,ModifyListener
,SWTEventListener
,Listener
public class DefaultQualityWizardPage extends WizardPage implements Listener, ModifyListener
Wizard page which allows to set precision defaults for all categories of the PCM.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Constructor Description DefaultQualityWizardPage(String pageName)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControl(Composite parent)
void
dispose()
String
getErrorMessage()
PCMRECategory
getRequiredElement(PCMRERequestCategory category)
Returns a new required element instance according to the selection.void
handleEvent(Event event)
boolean
isPageComplete()
void
modifyText(ModifyEvent e)
protected void
validate()
Validates the input and sets an appropriate error message.-
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, getControl, getDescription, getDialogFontName, 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
getControl, getDescription, getMessage, getTitle, performHelp, setVisible
-
-
-
-
Constructor Detail
-
DefaultQualityWizardPage
public DefaultQualityWizardPage(String pageName)
Create a new instance.- Parameters:
pageName
- Name of the page.
-
-
Method Detail
-
createControl
public void createControl(Composite parent)
- Specified by:
createControl
in interfaceIDialogPage
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessage
in interfaceIDialogPage
- Overrides:
getErrorMessage
in classDialogPage
-
isPageComplete
public boolean isPageComplete()
- Specified by:
isPageComplete
in interfaceIWizardPage
- Overrides:
isPageComplete
in classWizardPage
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceIDialogPage
- Overrides:
dispose
in classDialogPage
-
getRequiredElement
public PCMRECategory getRequiredElement(PCMRERequestCategory category)
Returns a new required element instance according to the selection.- Parameters:
category
- The category for which the element is requested.- Returns:
- The required element.
-
validate
protected void validate()
Validates the input and sets an appropriate error message.
-
handleEvent
public void handleEvent(Event event)
- Specified by:
handleEvent
in interfaceListener
-
modifyText
public void modifyText(ModifyEvent e)
- Specified by:
modifyText
in interfaceModifyListener
-
-