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
public abstract class AbstractApplyUnapplyHandler extends AbstractHandler
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
Fields Modifier and Type Field Description protected static ILabelProvider
LABEL_PROVIDER
-
Constructor Summary
Constructors Constructor Description AbstractApplyUnapplyHandler()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
applyUnapplyStateChanged(ExecutionEvent event)
Object
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 Detail
-
LABEL_PROVIDER
protected static final ILabelProvider LABEL_PROVIDER
-
-
Method Detail
-
execute
public Object execute(ExecutionEvent event) throws ExecutionException
- Throws:
ExecutionException
-
applyUnapplyStateChanged
protected abstract void applyUnapplyStateChanged(ExecutionEvent event) throws ExecutionException
- 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
public static EditingDomain getEditingDomainFor(EObject object)
-
-