Eden-06 / FRaMED-2.0

FRaMED 2.0 is the reimplementation of the Full-fledged Role Modeling EDitor allowing the graphical specification of Role-based Software Systems by means of compartments (aka. contexts), objects, roles, and relationships.
Eclipse Public License 2.0
3 stars 0 forks source link

Add edit policy check for creating role models #10

Closed SriousTaken closed 6 years ago

SriousTaken commented 6 years ago

Right now its possible to create as many Role Models as one want, when the compartment type feature is not chosen. It should be only possible to have Role Model at once. This should be ensured with the edit policies!

Eden-06 commented 6 years ago

This should be handled by this editpolicy rule, yet it isn't:

//If Compartment_Types is not set, then only one CompartmentType can be
//added in the top-level view (This will be named RoleModel).  
Add CompartmentType (!Compartment_Types) when !InType(CompartmentType) and !ContainsCompartment();
Create CompartmentType (!Compartment_Types) when !InType(CompartmentType) and !ContainsCompartment();
Direct_Edit CompartmentType (true) when true;