Class SiriusCustomUtil

java.lang.Object
org.palladiosimulator.editors.sirius.custom.util.SiriusCustomUtil

public class SiriusCustomUtil extends Object
Class containing some useful static methods to work with Sirius
  • Constructor Details

    • SiriusCustomUtil

      public SiriusCustomUtil()
  • Method Details

    • getRepresentationsURI

      public static URI getRepresentationsURI(IProject project)
    • selectViewpoints

      public static void selectViewpoints(org.eclipse.sirius.business.api.session.Session session, HashSet<org.eclipse.sirius.viewpoint.description.Viewpoint> viewpoints, boolean createRepresentation, IProgressMonitor monitor)
    • selectViewpoints

      public static void selectViewpoints(org.eclipse.sirius.business.api.session.Session session, List<String> viewpointNames, boolean createRepresentation, IProgressMonitor monitor)
    • createRepresentation

      public static org.eclipse.sirius.viewpoint.DRepresentation createRepresentation(org.eclipse.sirius.business.api.session.Session session, String representationName, org.eclipse.sirius.viewpoint.description.RepresentationDescription description, EObject semantic, IProgressMonitor monitor)
    • findViewpoint

      public static org.eclipse.sirius.viewpoint.description.Viewpoint findViewpoint(String viewpointName)
    • getSelectedViewpointByName

      public static org.eclipse.sirius.viewpoint.description.Viewpoint getSelectedViewpointByName(org.eclipse.sirius.business.api.session.Session session, String viewpointName)
    • findDescription

      public static org.eclipse.sirius.viewpoint.description.RepresentationDescription findDescription(org.eclipse.sirius.viewpoint.description.Viewpoint viewpoint, String descriptionName)
    • uriAlreadyLoaded

      public static boolean uriAlreadyLoaded(URI uri, org.eclipse.sirius.business.api.session.Session session)
    • getResourceByURI

      public static Resource getResourceByURI(URI uri, org.eclipse.sirius.business.api.session.Session session)