T
- type of the EStructuralFeature
which can be selectedpublic abstract class AbstractFilteredReferenceCommand<T extends org.eclipse.emf.ecore.EStructuralFeature>
extends org.eclipse.emf.edit.command.ChangeCommand
EStructuralFeature
using a dialog.Constructor and Description |
---|
AbstractFilteredReferenceCommand(org.eclipse.emf.common.notify.Notifier notifier,
org.eclipse.emf.edit.provider.ComposedAdapterFactory composedAdapterFactory,
org.eclipse.swt.widgets.Shell shell,
org.eclipse.emf.ecore.EClass rootClass,
ECPSelectionStatusValidator validator,
boolean allowMultiReferences)
Constructor for the AbstractFilteredReferenceCommand.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute() |
protected abstract void |
setSelectedValues(T selectedFeature,
List<org.eclipse.emf.ecore.EReference> bottomUpPath)
Template method which is called so that the selected element can be saved.
|
createChangeRecorder, dispose, disposeChangeRecorder, execute, getChangeDescription, getChangeRecorder, prepare, redo, setChangeDescription, undo
public AbstractFilteredReferenceCommand(org.eclipse.emf.common.notify.Notifier notifier, org.eclipse.emf.edit.provider.ComposedAdapterFactory composedAdapterFactory, org.eclipse.swt.widgets.Shell shell, org.eclipse.emf.ecore.EClass rootClass, ECPSelectionStatusValidator validator, boolean allowMultiReferences)
notifier
- the Notifier for the ChangeCommand
composedAdapterFactory
- the ComposedAdapterFactory
for the LabelProvidershell
- the Shell
to use in the dialogrootClass
- the EClass
which is the root of the viewvalidator
- the ECPSelectionStatusValidator
to use when a selection was doneallowMultiReferences
- whether multi references are allowed during the selectionprotected void doExecute()
doExecute
in class org.eclipse.emf.edit.command.ChangeCommand
protected abstract void setSelectedValues(T selectedFeature, List<org.eclipse.emf.ecore.EReference> bottomUpPath)
selectedFeature
- the EStructuralFeature
to setbottomUpPath
- the path to the featureCopyright © 2019. All rights reserved.