Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Run validation from my own actionSets
Run validation from my own actionSets [message #218564] Thu, 12 February 2009 17:58 Go to next message
Nicolas is currently offline NicolasFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,
I’m 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
Re: Run validation from my own actionSets [message #219278 is a reply to message #218564] Thu, 19 February 2009 14:53 Go to previous message
Nicolas is currently offline NicolasFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,
I solved my problem.

Nicolas
Previous Topic:GMF Book
Next Topic:Making figures sensitive to attributes of semantic elements
Goto Forum:
  


Current Time: Mon Mar 08 00:59:37 GMT 2021

Powered by FUDForum. Page generated in 0.01479 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top