Run validation from my own actionSets [message #218564] |
Thu, 12 February 2009 12:58  |
Eclipse User |
|
|
|
Hi,
Im a new GMF user. I would like to perform my validation through the
action "myvalidation" of my own menu that I have created like:
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="DiagramMenu_Anchor_Router.diagram.actionSet"
label="Action"
visible="true">
<menu
id="Mymenu"
label="Mymenu">
<separator
name="MyGroup">
</separator>
</menu>
<action
id="myvalidation"
label="myvalidation"
menubarPath="Mymenu/MyGroup"
style="push">
</action>
</actionSet>
</extension>
Now I would like to allow my action to catch my validate action, but I am
a little bit lost. I have seen this proposed solution
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg06926.html
and it is not quite easy for me. I tried to use this base in my
XX.diagram.part.ValidateAction public
ValidateAction(IWorkBenchPartDescriptor workbenchPartdescriptor){
} but
it does not run. Iknow I do not use this properly and I would like to know
what steps I have forgotten and/or what mistake I have done.
Many thanks for your help,
Nicolas
|
|
|
|
Powered by
FUDForum. Page generated in 0.04034 seconds