public static class DiagramStatus.DesignView
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentDiagramName()
Returns the current active diagram name.
|
PermissionList |
getEnabledPermissions(org.polarsys.chess.chessmlprofile.Core.Domain theDomain)
Returns all the enabled permissions based on the enabled views.
|
PermissionList |
getEnabledPermissions(java.lang.String viewName,
org.polarsys.chess.chessmlprofile.Core.Domain theDomain)
Returns all the enabled permissions based on the given view.
|
java.lang.String |
getName()
Gets the names of the active design views.
|
boolean |
isDiagramAllowed(org.eclipse.gmf.runtime.notation.Diagram diagram)
Checks if the diagram passed as a parameter is allowed in the enabled views.
|
boolean |
isEnabled(java.lang.String view)
Checks is a view is enabled by providing its name.
|
public java.lang.String getName()
public boolean isEnabled(java.lang.String view)
view
- the view namepublic java.lang.String getCurrentDiagramName()
public PermissionList getEnabledPermissions(org.polarsys.chess.chessmlprofile.Core.Domain theDomain)
theDomain
- the the domainPermissionList
with all the enabled permissionspublic PermissionList getEnabledPermissions(java.lang.String viewName, org.polarsys.chess.chessmlprofile.Core.Domain theDomain)
viewName
- the view nametheDomain
- the the domainPermissionList
with all the enabled permissionspublic boolean isDiagramAllowed(org.eclipse.gmf.runtime.notation.Diagram diagram)
diagram
- the diagram