Overriding Sapphire Actions [message #711397] |
Sat, 06 August 2011 01:03  |
Eclipse User |
|
|
|
Hello,
I have a model like
Person{id,name,address}
I have defined an MyAddActionHandlerfor handling all my Model Creation actions referred http://www.eclipse.org/sapphire/releases/0.3/documentation/actions/index.html
I am trying to override the Sapphire.Add action that comes on my Model Context right click to call my MyAddActionHandler. But I see am not able to override it i always get the Sapphire.Add default handler being called.
I have defined the MyAddActionHandlerGlobally, here is the definition of it,
<action-handler>
<id>Portlet.Sapphire.Add.Override</id>
<impl>MyAddActionHandler</impl>
<condition>MyAddActionHandlerCondition</condition>
<context>Sapphire.EditorPage.Outline</context>
<action>Sapphire.Add</action>
<context>Sapphire.EditorPage.Outline.Node</context>
</action-handler>
Can you please let me know if I have missed anything ?
~Kamesh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10242 seconds