Over riding an existing action [message #144173] |
Wed, 25 July 2007 15:58 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: james.willans.xactium.com
I want to extend the condition by which a DeleteFromModelAction calculates
it enablement. What is the best way of doing this?
The method I have tried is to create a new Action which extends
DeleteFromModelAction with a new enablement calculation. I created an
extension of new DiagramContributionItemProvider which overrides
createAction to create the extension to DeleteFromModelAction rather than
the original. This was then declared as the contributionItemProvider in
the plugin.xml of the diagram plugin. However this does not seem to force
the diagram to use the new DiagramContributionItemProvider rather than the
original?
Thanks,
James
|
|
|
|
Powered by
FUDForum. Page generated in 0.03693 seconds