Class SiriusCustomUtil
java.lang.Object
org.palladiosimulator.editors.sirius.custom.util.SiriusCustomUtil
Class containing some useful static methods to work with Sirius
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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) static org.eclipse.sirius.viewpoint.description.RepresentationDescription
findDescription
(org.eclipse.sirius.viewpoint.description.Viewpoint viewpoint, String descriptionName) static org.eclipse.sirius.viewpoint.description.Viewpoint
findViewpoint
(String viewpointName) static URI
getRepresentationsURI
(IProject project) static Resource
getResourceByURI
(URI uri, org.eclipse.sirius.business.api.session.Session session) static org.eclipse.sirius.viewpoint.description.Viewpoint
getSelectedViewpointByName
(org.eclipse.sirius.business.api.session.Session session, String viewpointName) static void
selectViewpoints
(org.eclipse.sirius.business.api.session.Session session, HashSet<org.eclipse.sirius.viewpoint.description.Viewpoint> viewpoints, boolean createRepresentation, IProgressMonitor monitor) static void
selectViewpoints
(org.eclipse.sirius.business.api.session.Session session, List<String> viewpointNames, boolean createRepresentation, IProgressMonitor monitor) static boolean
uriAlreadyLoaded
(URI uri, org.eclipse.sirius.business.api.session.Session session)
-
Constructor Details
-
SiriusCustomUtil
public SiriusCustomUtil()
-
-
Method Details
-
getRepresentationsURI
-
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
-