Class SelectAdapterPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.palladiosimulator.edp2.visualization.wizards.SelectAdapterPage
-
- All Implemented Interfaces:
IDialogPage
,IMessageProvider
,ISelectionChangedListener
,IWizardPage
public class SelectAdapterPage extends WizardPage implements ISelectionChangedListener
WizardPage
, which provides a list of all available adaptersAbstractAdapter
, that are registered as extensions.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SelectAdapterPage(String pageName, AbstractDataSource selectedSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canFlipToNextPage()
void
createControl(Composite parent)
protected List<IAdapterWizard>
getApplicableAdapters(AbstractDataSource forSource)
IWizardPage
getNextPage()
Method which is called when the "Next" Button in the Wizard is clicked.void
selectionChanged(SelectionChangedEvent event)
void
setAdapter(AbstractAdapter adapter)
IStatus
updatePageStatus()
-
Methods inherited from class org.eclipse.jface.wizard.WizardPage
getContainer, getDialogSettings, getImage, getName, 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
-
-
-
-
Constructor Detail
-
SelectAdapterPage
protected SelectAdapterPage(String pageName, AbstractDataSource selectedSource)
-
-
Method Detail
-
canFlipToNextPage
public boolean canFlipToNextPage()
- Specified by:
canFlipToNextPage
in interfaceIWizardPage
- Overrides:
canFlipToNextPage
in classWizardPage
-
createControl
public void createControl(Composite parent)
- Specified by:
createControl
in interfaceIDialogPage
-
getApplicableAdapters
protected List<IAdapterWizard> getApplicableAdapters(AbstractDataSource forSource)
-
getNextPage
public IWizardPage getNextPage()
Method which is called when the "Next" Button in the Wizard is clicked. Must callIAdapterWizard.setSourceFromCaller(AbstractDataSource, SelectAdapterPage)
, where theAbstractDataSource
is the source handed from the RawMeasurements object, which was selected in the first place andthis
a reference on thisSelectAdapterPage
.- Specified by:
getNextPage
in interfaceIWizardPage
- Overrides:
getNextPage
in classWizardPage
-
selectionChanged
public void selectionChanged(SelectionChangedEvent event)
- Specified by:
selectionChanged
in interfaceISelectionChangedListener
-
updatePageStatus
public IStatus updatePageStatus()
-
setAdapter
public void setAdapter(AbstractAdapter adapter)
-
-