Class AbstractApplyUnapplyHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.palladiosimulator.mdsdprofiles.ui.handlers.AbstractApplyUnapplyHandler
- Direct Known Subclasses:
ProfileApplyUnapplyHandler
,StereotypeApplyUnapplyHandler
Handles apply and unapply operations to a given target element via an FeatureEditorDialog.
Subject of application is a set of EObject-extending elements.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
execute
(ExecutionEvent event) static EditingDomain
getEditingDomainFor
(EObject object) protected static <TARGET_ELEMENT_TYPE>
TARGET_ELEMENT_TYPEgetTargetElement
(ExecutionEvent event) protected static <TARGET_ELEMENT_TYPE extends EObject,
PROFILE_ELEMENT_TYPE>
EList<PROFILE_ELEMENT_TYPE>getUpdatedProfileElementsFromDialog
(ExecutionEvent event, TARGET_ELEMENT_TYPE targetElement, List<PROFILE_ELEMENT_TYPE> currentValues, List<PROFILE_ELEMENT_TYPE> choiceOfValues, String displayName) Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Field Details
-
LABEL_PROVIDER
-
-
Constructor Details
-
AbstractApplyUnapplyHandler
public AbstractApplyUnapplyHandler()
-
-
Method Details
-
execute
- Throws:
ExecutionException
-
applyUnapplyStateChanged
- Throws:
ExecutionException
-
getTargetElement
protected static <TARGET_ELEMENT_TYPE> TARGET_ELEMENT_TYPE getTargetElement(ExecutionEvent event) throws ExecutionException - Throws:
ExecutionException
-
getUpdatedProfileElementsFromDialog
protected static <TARGET_ELEMENT_TYPE extends EObject,PROFILE_ELEMENT_TYPE> EList<PROFILE_ELEMENT_TYPE> getUpdatedProfileElementsFromDialog(ExecutionEvent event, TARGET_ELEMENT_TYPE targetElement, List<PROFILE_ELEMENT_TYPE> currentValues, List<PROFILE_ELEMENT_TYPE> choiceOfValues, String displayName) throws ExecutionException - Throws:
ExecutionException
-
getEditingDomainFor
-