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 voidcreateControl(Composite parent)voiddispose()StringgetErrorMessage()PCMRECategorygetRequiredElement(PCMRERequestCategory category)Returns a new required element instance according to the selection.voidhandleEvent(Event event)booleanisPageComplete()voidmodifyText(ModifyEvent e)protected voidvalidate()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:
createControlin interfaceIDialogPage
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessagein interfaceIDialogPage- Overrides:
getErrorMessagein classDialogPage
-
isPageComplete
public boolean isPageComplete()
- Specified by:
isPageCompletein interfaceIWizardPage- Overrides:
isPageCompletein classWizardPage
-
dispose
public void dispose()
- Specified by:
disposein interfaceIDialogPage- Overrides:
disposein 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:
handleEventin interfaceListener
-
modifyText
public void modifyText(ModifyEvent e)
- Specified by:
modifyTextin interfaceModifyListener
-
-