|DiagramEditor default behaviour [message #795271]
||Fri, 10 February 2012 09:17
Registered: February 2012
I'm developing a tool for analysing CIM (Common Information Model) models. To allow the user to analyse the model in a class diagram I want to use Graphiti to create such a diagram editor.
Analysing means that there should be no chance to change the analysed model. So diagram elements should be not deletable.
I've already tried to disable the DeleteFeature by returning null in my FeatureProvider. This hides the Delete entry from context menu but there is still a Delete entry in Eclipse Edit menu. When I click this entry something happens in background (diagram editor is marked as dirty and there is a new entry in undo-list) but the diagram elements remain as expected.
How can I remove the delete entry in Eclipse Edit menu and how can I set the keyboard shortcut of "Remove" to DEL?
Thank you very much for your help in advance!
Powered by FUDForum
. Page generated in 0.04345 seconds