Class OpenRepresentation
java.lang.Object
org.palladiosimulator.editors.sirius.custom.externaljavaactions.OpenRepresentation
- All Implemented Interfaces:
org.eclipse.sirius.tools.api.ui.IExternalJavaAction
public class OpenRepresentation
extends Object
implements org.eclipse.sirius.tools.api.ui.IExternalJavaAction
External java action that opens representations of the selected element if
they already exist or creates a new representation and opens it if none
exists.
Three parameters must be specified :
Viewpoint: the name of the viewpoint to be selected
RepresentationDescription: the name of the specific RepresentationDescription in the chosen viewpoint
element: the element whose representation should be opened
Diagram name: Optional
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(Collection<? extends EObject> selections) void
-
Constructor Details
-
OpenRepresentation
public OpenRepresentation()
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceorg.eclipse.sirius.tools.api.ui.IExternalJavaAction
-
canExecute
- Specified by:
canExecute
in interfaceorg.eclipse.sirius.tools.api.ui.IExternalJavaAction
-