Class SelectRepositoryWizardPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.palladiosimulator.analyzer.quality.presentation.SelectRepositoryWizardPage
-
- All Implemented Interfaces:
EventListener,IDialogPage,IMessageProvider,IWizardPage,ModifyListener,SWTEventListener
public class SelectRepositoryWizardPage extends WizardPage implements ModifyListener
Allows to select a Palladio repository file. Supports preselection of files.
-
-
Field Summary
Fields Modifier and Type Field Description protected IStructuredSelectionselectionThe selection used to determine the repository.protected TexttxtRepositoryText field for the repository URI.-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Constructor Description SelectRepositoryWizardPage(String pageName)Creates a new page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateControl(Composite parent)StringgetRepositoryFileUri()voidinit(IStructuredSelection selection)Initializes the page.voidmodifyText(ModifyEvent e)protected voidvalidate()Validates the input on this pages and set the status accordingly.-
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, 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
-
-
-
-
Field Detail
-
txtRepository
protected Text txtRepository
Text field for the repository URI.
-
selection
protected IStructuredSelection selection
The selection used to determine the repository.
-
-
Constructor Detail
-
SelectRepositoryWizardPage
public SelectRepositoryWizardPage(String pageName)
Creates a new page.- Parameters:
pageName- Name of the page.
-
-
Method Detail
-
init
public void init(IStructuredSelection selection)
Initializes the page.- Parameters:
selection- Preselected repository file.
-
getRepositoryFileUri
public String getRepositoryFileUri()
- Returns:
- EMF-parsable URI of the selected repository file.
-
createControl
public void createControl(Composite parent)
- Specified by:
createControlin interfaceIDialogPage
-
validate
protected void validate()
Validates the input on this pages and set the status accordingly.
-
modifyText
public void modifyText(ModifyEvent e)
- Specified by:
modifyTextin interfaceModifyListener
-
-