eu.esdihumboldt.hale.ui.util.wizard
Class ViewerWizardSelectionPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.jface.wizard.WizardSelectionPage
eu.esdihumboldt.hale.ui.util.wizard.ViewerWizardSelectionPage
- All Implemented Interfaces:
- org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
- Direct Known Subclasses:
- ActionUIWizardPage, NewRelationPage
public abstract class ViewerWizardSelectionPage
- extends org.eclipse.jface.wizard.WizardSelectionPage
Wizard selection page based on a structured viewer.
- Author:
- Simon Templer
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
Method Summary |
protected String |
acceptWizard(org.eclipse.jface.wizard.IWizardNode wizardNode)
Accepts or doesn't accept a wizard node as a valid selection. |
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
protected abstract Pair<org.eclipse.jface.viewers.StructuredViewer,org.eclipse.swt.widgets.Control> |
createViewer(org.eclipse.swt.widgets.Composite parent)
Create the structured viewer and set it up with label and content
providers as well as the input. |
protected void |
doubleClicked(org.eclipse.jface.viewers.DoubleClickEvent event)
Called when a double click in the viewer occurs. |
protected void |
setSelectedNode(org.eclipse.jface.wizard.IWizardNode node)
|
protected void |
updateMessage()
Update the selected node based on the viewer selection. |
protected void |
viewerSelectionChanged(org.eclipse.jface.viewers.ISelection selection)
Called when the viewer selection has changed. |
Methods inherited from class org.eclipse.jface.wizard.WizardSelectionPage |
canFlipToNextPage, dispose, getNextPage, getSelectedNode |
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, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible |
ViewerWizardSelectionPage
protected ViewerWizardSelectionPage(String pageName)
- See Also:
WizardSelectionPage.WizardSelectionPage(String)
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent)
- See Also:
IDialogPage.createControl(Composite)
viewerSelectionChanged
protected void viewerSelectionChanged(org.eclipse.jface.viewers.ISelection selection)
- Called when the viewer selection has changed.
- Parameters:
selection
- the current selection
setSelectedNode
protected void setSelectedNode(org.eclipse.jface.wizard.IWizardNode node)
- Overrides:
setSelectedNode
in class org.eclipse.jface.wizard.WizardSelectionPage
- See Also:
WizardSelectionPage.setSelectedNode(IWizardNode)
acceptWizard
protected String acceptWizard(org.eclipse.jface.wizard.IWizardNode wizardNode)
- Accepts or doesn't accept a wizard node as a valid selection.
- Parameters:
wizardNode
- the wizard node
- Returns:
null
if the node is accepted or a reason why it is
not accepted.
updateMessage
protected void updateMessage()
- Update the selected node based on the viewer selection.
doubleClicked
protected void doubleClicked(org.eclipse.jface.viewers.DoubleClickEvent event)
- Called when a double click in the viewer occurs.
- Parameters:
event
- the double click event
createViewer
protected abstract Pair<org.eclipse.jface.viewers.StructuredViewer,org.eclipse.swt.widgets.Control> createViewer(org.eclipse.swt.widgets.Composite parent)
- Create the structured viewer and set it up with label and content
providers as well as the input. The viewer must provide
IStructuredSelection
s with IWizardNode
s.
- Parameters:
parent
- the parent composite
- Returns:
- the viewer paired with the main control that should fill the
parent composite
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d