|
Re: Problems of Product Life Cycle Management [message #1791348 is a reply to message #1791223] |
Thu, 28 June 2018 09:38 |
|
Hello
1. Indeed you have no other information that the container of the element you may create. Nevertheless, you can implement the precondition on the DiagramDescription.
self variable is your smeantic object os you can use a service that will search in the model if there is already an existing diagram for this semantic object.
Below a peace of code to help you implement your service
SiriusReferenceFinder srf = SiriusReferenceFinder.of(semanticObject);
srf.getImpactedRepresentationDescriptors(semanticObject,..)
2. Returning true to IPermissionProvider::provides is a correct implementation in the case you want your own PermissionAuthority to manage the lock of the objects. But you may have some cases where you would not and then implement that logic in IPermissionProvider::provides
3. Indeed, PermissionAuthority will not be check in advance using delete and F2 button in the keyboard. Then the delete or rename action is possible but will fail afterwards when PermissionAuthority is asked. I invite you to open a bugzilla. https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
regards
Laurent
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02500 seconds