Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How add action on right click to EMF genmodel editor
How add action on right click to EMF genmodel editor [message #415702] Mon, 31 December 2007 12:28 Go to next message
DJ is currently offline DJFriend
Messages: 3
Registered: July 2009
Junior Member
Hi

I am trying to add menu action on right click to EMF genmodel editor
silimar to other action like "Generate model code" using following
extension point added to plugin.xml

<extension point="org.eclipse.ui.popupMenus">
<objectContribution
id="org.eclipse.emf.ecore.sdo.editor.SetSDODefaults"
objectClass="org.eclipse.emf.codegen.ecore.genmodel.GenModel ">
<action
id="org.eclipse.emf.ecore.sdo.editor.SetSDODefaultsAction"
label="%_UI_SetSDODefaults_menu_item" menubarPath="additions"
class="org.eclipse.emf.ecore.sdo.action.SetSDODefaultsAction "
enablesFor="1" />
</objectContribution>
</extension>

Even after doing this, I didn't found "XYZ Tools" on right click in to an
EMF genmodel editor.

It will be really appriciable if you can help me in doing this.

Thanks in advance.
Rocky D
Re: How add action on right click to EMF genmodel editor [message #415703 is a reply to message #415702] Mon, 31 December 2007 13:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Rocky,

You'll have to describe the details of what you've done. The SDO example
obviously works correctly so you must of done something a little
differently. If you are installing new plugins into the IDE itself
for your purpose, it's a good idea to run with -clean -debug and keep a
close eye on the <workspace>/.metadata/.log, which is what's displayed
in the Error Log view, for any signs of your plugin failing to be
activated...


Rocky wrote:
> Hi
> I am trying to add menu action on right click to EMF genmodel editor
> silimar to other action like "Generate model code" using following
> extension point added to plugin.xml
>
> <extension point="org.eclipse.ui.popupMenus">
> <objectContribution
> id="org.eclipse.emf.ecore.sdo.editor.SetSDODefaults"
> objectClass="org.eclipse.emf.codegen.ecore.genmodel.GenModel ">
> <action
> id="org.eclipse.emf.ecore.sdo.editor.SetSDODefaultsAction"
> label="%_UI_SetSDODefaults_menu_item" menubarPath="additions"
> class="org.eclipse.emf.ecore.sdo.action.SetSDODefaultsAction "
> enablesFor="1" />
> </objectContribution>
> </extension>
>
> Even after doing this, I didn't found "XYZ Tools" on right click in to
> an EMF genmodel editor.
>
> It will be really appriciable if you can help me in doing this.
>
> Thanks in advance.
> Rocky D
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How add action on right click to EMF genmodel editor [message #415707 is a reply to message #415703] Wed, 02 January 2008 06:18 Go to previous message
DJ is currently offline DJFriend
Messages: 3
Registered: July 2009
Junior Member
Thanks Ed,
Now its working by replacing action class value to my action class name.

Thanks
Rocky
Previous Topic:Convert Model to Metamodel
Next Topic:resource unload problem
Goto Forum:
  


Current Time: Sat Apr 27 00:52:57 GMT 2024

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

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

Back to the top