Read-Only Graphiti Diagrams [message #677170] |
Tue, 07 June 2011 15:03  |
Eclipse User |
|
|
|
Can anyone suggest a strategy for displaying a read-only Graphiti diagram? The use case would allow users to inspect a diagram and select elements, but not create, move, delete, or edit elements. Selection is required to allow access to element property sheets.
|
|
|
|
|
|
|
Re: Read-Only Graphiti Diagrams [message #850752 is a reply to message #677511] |
Fri, 20 April 2012 05:42  |
Eclipse User |
|
|
|
Rhett Hudson wrote on Wed, 08 June 2011 13:31Thank you both.
I extended my ToolBehaviorProvider implemented IFeatureCheckerHolder and supplied a new FeatureCheckerAdapter(false). Then wrapped my IFeatureProvider in a ConfigurableFeatureProviderWrapper and Viola! It might sound scary, but the whole thing was pretty trivial after I understood how the example Christian cited worked.
Jos, I can see why your solution is more appropriate for your situation. I need both a editable and a read-only version of the editor, so the ability to just disable the whole thing when needed worked out best for me.
Thanks again.
Hi, sorry for my poor English I am Italian.I also need both a editable and a read-only version of the editor, can me explain better how can I do it? Thank you very much!
|
|
|
Powered by
FUDForum. Page generated in 0.06544 seconds