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 Details

    • OpenRepresentation

      public OpenRepresentation()
  • Method Details

    • execute

      public void execute(Collection<? extends EObject> selections, Map<String,Object> parameters)
      Specified by:
      execute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction
    • canExecute

      public boolean canExecute(Collection<? extends EObject> selections)
      Specified by:
      canExecute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction