Class DiscoverLocalDirectoryPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.palladiosimulator.edp2.ui.wizards.datasource.DiscoverLocalDirectoryPage
-
- All Implemented Interfaces:
IDialogPage
,IMessageProvider
,IWizardPage
public class DiscoverLocalDirectoryPage extends WizardPage
Wizard page to discover and select a local directory based repository.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DiscoverLocalDirectoryPage.NotEmptyValidator
Validator which checks that a provided value is not empty.static class
DiscoverLocalDirectoryPage.UriPointsToLocalDirectoryValidator
Validator which checks if that the content of a field points to a directory within the local file system.
-
Field Summary
-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Constructor Description DiscoverLocalDirectoryPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControl(Composite parent)
void
createDirectoryInputSection(Composite container, String modelFileLabel, Text textFileNameToLoad)
Creates a section in the parent container for selection files.Repository
getRepositoryOnFinish()
-
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
-
-
-
-
Method Detail
-
createControl
public void createControl(Composite parent)
-
createDirectoryInputSection
public void createDirectoryInputSection(Composite container, String modelFileLabel, Text textFileNameToLoad)
Creates a section in the parent container for selection files. Creates aGroup
with a label. Inside the group, a text field for the file with the given extension, a button to load from the workspace and a button to load from the file system are displayed.- Parameters:
container
- The parent containermodelFileLabel
- The label of the section around the file input text fieldtextFileNameToLoad
- The text field that contains the filename. Its parent will be reset to the appropriate group within this method.
-
getRepositoryOnFinish
public Repository getRepositoryOnFinish()
-
-