| Summary: | IPermissionAuthority can't pervent edges from being moved on a diagram | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Yvan Lussaud <yvan.lussaud> | ||||||
| Component: | Core | Assignee: | Project inbox <sirius.core-inbox> | ||||||
| Status: | RESOLVED INVALID | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | laurent.redor | ||||||
| Version: | 2.0.0 | Keywords: | triaged | ||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Yvan Lussaud
Created attachment 250246 [details]
Plugin with a"ReadOnly" PermissionProvider
This permission provider awlays provides a IPermissionAuthority that returns false to all can*() methods.
Created attachment 250247 [details]
Test project to import in runtime
I don't reproduce your problem. I added a simple use case. * Import the project PluginWithReadOnlyPermissionProvider (from PluginWithReadOnlyPermissionProvider.zip) in your workspace * Launch a runtime * Import the project Test (from runtimeTestProject.zip) * Open the diagram "new DiagramTest" from representations.aird file * Every thing is "freezed" even the edges and the edges labels. Can you try this example in your environment? P.S. : I only notice a bug in the documentation of the org.eclipse.sirius.ecore.extender.PermissionProvider. I will create another bug for that. The issue for the documentation problem of extension point (end of comment 3) is bug 458501. I tested your IPermissionAuthority and it works find after changing the getLockStatus() method. I will register my IPermissionAuthority in a gentle way using the extension point. :) This issue is invalid. |