Class AbstractKlighdModelModificationHandler
java.lang.Object
de.cau.cs.kieler.klighd.ui.modifymodel.AbstractKlighdModelModificationHandler
- All Implemented Interfaces:
IModelModificationHandler
public abstract class AbstractKlighdModelModificationHandler
extends Object
implements IModelModificationHandler
Abstract implementation of the IModifyModelHandler for convenience purposes.
- Author:
- ckru
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.eclipse.ui.IWorkbenchPart workbenchPart, com.google.common.base.Function<String, Void> m, String param) voidexecute(org.eclipse.ui.IWorkbenchPart workbenchPart, Method m, Object classObject, List<Object> params) getDiagramViewPart(org.eclipse.ui.IWorkbenchPart activePart) Gets a ContextViewer from currently active WorkbenchPart if possible.org.eclipse.emf.ecore.EObjectList<org.eclipse.emf.ecore.EObject>getSelection(org.eclipse.ui.IWorkbenchPart workbenchPart, List<?> selection) booleanvoidvoidtransformationExecuted(String transformationName, Object[] parameters, Object result, org.eclipse.emf.ecore.EObject select) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.cau.cs.kieler.klighd.IModelModificationHandler
canHandle
-
Constructor Details
-
AbstractKlighdModelModificationHandler
public AbstractKlighdModelModificationHandler()
-
-
Method Details
-
getSelection
public List<org.eclipse.emf.ecore.EObject> getSelection(org.eclipse.ui.IWorkbenchPart workbenchPart, List<?> selection) - Specified by:
getSelectionin interfaceIModelModificationHandler
-
execute
public void execute(org.eclipse.ui.IWorkbenchPart workbenchPart, Method m, Object classObject, List<Object> params) - Specified by:
executein interfaceIModelModificationHandler
-
execute
public void execute(org.eclipse.ui.IWorkbenchPart workbenchPart, com.google.common.base.Function<String, Void> m, String param) - Specified by:
executein interfaceIModelModificationHandler
-
performPostProcessing
public void performPostProcessing()- Specified by:
performPostProcessingin interfaceIModelModificationHandler
-
isLayoutRequired
public boolean isLayoutRequired()- Specified by:
isLayoutRequiredin interfaceIModelModificationHandler
-
getLayoutRoot
public org.eclipse.emf.ecore.EObject getLayoutRoot()- Specified by:
getLayoutRootin interfaceIModelModificationHandler
-
transformationExecuted
public void transformationExecuted(String transformationName, Object[] parameters, Object result, org.eclipse.emf.ecore.EObject select) - Specified by:
transformationExecutedin interfaceIModelModificationHandler
-
getDiagramViewPart
Gets a ContextViewer from currently active WorkbenchPart if possible. The ContextViewer is later used to get the current selection.- Parameters:
activePart- the workbench part the model to modify belongs to.- Returns:
- the ContextViewer linked to the active WorkbenchPart. Null if active part has no ContextViewer
-