public class SelectFeaturePathWizardPage
extends org.eclipse.jface.wizard.WizardPage
Constructor and Description |
---|
SelectFeaturePathWizardPage(String pageName,
String pageTitle,
String pageDescription,
org.eclipse.emf.ecore.EClass rootEClass,
org.eclipse.jface.viewers.ISelection firstSelection,
SegmentGenerator segmentGenerator,
EStructuralFeatureSelectionValidator selectionValidator,
boolean allowMultiReferencesInPath) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureSegments(List<org.eclipse.emf.ecore.EStructuralFeature> bottomUpPath)
Generates segments from the given path and set them in this page's domain model reference.
|
void |
createControl(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.jface.viewers.ISelectionChangedListener |
createSelectionChangedListener() |
protected org.eclipse.jface.viewers.TreeViewer |
createTreeViewer(org.eclipse.swt.widgets.Composite composite)
Creates the tree viewer of this wizard page.
|
void |
dispose() |
VDomainModelReference |
getDomainModelReference() |
void |
setRootEClass(org.eclipse.emf.ecore.EClass rootEClass)
(Re-)sets the root
EClass of this wizard page. |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
public SelectFeaturePathWizardPage(String pageName, String pageTitle, String pageDescription, org.eclipse.emf.ecore.EClass rootEClass, org.eclipse.jface.viewers.ISelection firstSelection, SegmentGenerator segmentGenerator, EStructuralFeatureSelectionValidator selectionValidator, boolean allowMultiReferencesInPath)
pageName
- pageTitle
- pageDescription
- rootEClass
- firstSelection
- segmentGenerator
- selectionValidator
- allowMultiReferencesInPath
- true
: Multi references are allowed in the middle of a
reference path; false
: they are only allowed as the last path segmentpublic VDomainModelReference getDomainModelReference()
VDomainModelReference
which is configured in this pagepublic void createControl(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite composite)
TreeViewer
.
Note: This method should only create the viewer but not configure anymore stuff like the label provider.
composite
- The Composite
which will contain the tree viewerTreeViewer
public void setRootEClass(org.eclipse.emf.ecore.EClass rootEClass)
EClass
of this wizard page. This clears the current selection.rootEClass
- The new root EClass
protected org.eclipse.jface.viewers.ISelectionChangedListener createSelectionChangedListener()
ISelectionChangedListener
for this page's TreeViewer
.protected void configureSegments(List<org.eclipse.emf.ecore.EStructuralFeature> bottomUpPath)
bottomUpPath
- Path to the selected feature (including it). The selected feature is the last element in
the list.public void dispose()
dispose
in interface org.eclipse.jface.dialogs.IDialogPage
dispose
in class org.eclipse.jface.dialogs.DialogPage
Copyright © 2019. All rights reserved.