public class InternalViewUtils
extends java.lang.Object
Constructor and Description |
---|
InternalViewUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkPermission(DiagramStatus.DesignView designView,
EntryId entryId,
byte permission,
org.polarsys.chess.chessmlprofile.Core.Domain theDomain)
Checks the .
|
static boolean |
checkPermission(java.lang.String viewName,
EntryId entryId,
byte permission,
DiagramStatus.DesignView currentView,
org.polarsys.chess.chessmlprofile.Core.Domain theDomain)
Check permission.
|
static org.eclipse.uml2.uml.Package |
getCHESSComponentPackage(org.eclipse.uml2.uml.Model theModel)
Gets the CHESS component package.
|
static org.eclipse.uml2.uml.Package |
getCHESSRequirementPackage(org.eclipse.uml2.uml.Model theModel)
Gets the CHESS requirement package.
|
static org.eclipse.uml2.uml.Package |
getCHESSSystemPackage(org.eclipse.uml2.uml.Model theModel)
Gets the CHESS system package.
|
static java.lang.String |
getViewName(org.eclipse.uml2.uml.Package pkg)
Gets the name of the stereotype of the package that represents the design view.
|
static org.eclipse.uml2.uml.Stereotype |
getViewStereotypeApplied(org.eclipse.uml2.uml.Package pkg)
Gets the view stereotype applied.
|
static org.eclipse.uml2.uml.Package |
getViewWithThrows(org.eclipse.emf.ecore.EObject ob)
Gets the view with throws.
|
static boolean |
hasViewStereotypeApplied(org.eclipse.uml2.uml.Package pkg)
Checks for view stereotype applied.
|
static boolean |
isElementWritable(org.eclipse.uml2.uml.Element element,
DiagramStatus.DesignView currentView)
Deprecated.
|
static boolean |
isView(org.eclipse.emf.ecore.EObject notifier)
Checks if is view.
|
public static java.lang.String getViewName(org.eclipse.uml2.uml.Package pkg)
pkg
- the packagepublic static org.eclipse.uml2.uml.Stereotype getViewStereotypeApplied(org.eclipse.uml2.uml.Package pkg)
pkg
- the pkgpublic static org.eclipse.uml2.uml.Package getViewWithThrows(org.eclipse.emf.ecore.EObject ob) throws java.lang.Exception
ob
- the objava.lang.Exception
- the exceptionpublic static boolean hasViewStereotypeApplied(org.eclipse.uml2.uml.Package pkg)
pkg
- the pkg@Deprecated public static boolean isElementWritable(org.eclipse.uml2.uml.Element element, DiagramStatus.DesignView currentView)
element
- the elementcurrentView
- the current viewpublic static boolean isView(org.eclipse.emf.ecore.EObject notifier)
notifier
- the notifierpublic static org.eclipse.uml2.uml.Package getCHESSRequirementPackage(org.eclipse.uml2.uml.Model theModel)
theModel
- the the modelpublic static org.eclipse.uml2.uml.Package getCHESSSystemPackage(org.eclipse.uml2.uml.Model theModel)
theModel
- the the modelpublic static org.eclipse.uml2.uml.Package getCHESSComponentPackage(org.eclipse.uml2.uml.Model theModel)
theModel
- the the modelpublic static boolean checkPermission(DiagramStatus.DesignView designView, EntryId entryId, byte permission, org.polarsys.chess.chessmlprofile.Core.Domain theDomain)
designView
- the design viewentryId
- the entry idpermission
- the permission type, i.e PermissionEntry.OWNER
theDomain
- the the domainpublic static boolean checkPermission(java.lang.String viewName, EntryId entryId, byte permission, DiagramStatus.DesignView currentView, org.polarsys.chess.chessmlprofile.Core.Domain theDomain)
viewName
- the view nameentryId
- the entry idpermission
- the permissioncurrentView
- the current viewtheDomain
- the the domain