Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Custom PopupMenu in an Generated Model Editor
Custom PopupMenu in an Generated Model Editor [message #533083] Wed, 12 May 2010 08:18 Go to next message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
Hello guys,
i am trying to integrate a PopUpMenu for executing an IAction in my generated model editor w/o success.
For the Ecore Editor it is working with following code:
<extension point="org.eclipse.ui.popupMenus">
  <objectContribution    id="org.eclipse.emf.ecore.editor.CreateEOperationWithAnnotation"
    objectClass="org.eclipse.emf.ecore.EClass">
    <action  id="org.eclipse.emf.ecore.editor.CreateEOperationWithAnnotation"
      label="Codegen Operation"
      menubarPath="additions"    class="org.softwarepoets.emf.ecore.editor.extensions.CreateOperationWithAnnotation"
      enablesFor="1"/>
    </objectContribution>
</extension>


Any idea what I have to change there ??

Sincerly Patrick
Re: Custom PopupMenu in an Generated Model Editor [message #533088 is a reply to message #533083] Wed, 12 May 2010 08:26 Go to previous message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
Patrick Schmitt wrote on Wed, 12 May 2010 04:18
Hello guys,
i am trying to integrate a PopUpMenu for executing an IAction in my generated model editor w/o success.
For the Ecore Editor it is working with following code:
<extension point="org.eclipse.ui.popupMenus">
  <objectContribution    id="org.eclipse.emf.ecore.editor.CreateEOperationWithAnnotation"
    objectClass="org.eclipse.emf.ecore.EClass">
    <action  id="org.eclipse.emf.ecore.editor.CreateEOperationWithAnnotation"
      label="Codegen Operation"
      menubarPath="additions"    class="org.softwarepoets.emf.ecore.editor.extensions.CreateOperationWithAnnotation"
      enablesFor="1"/>
    </objectContribution>
</extension>


Any idea what I have to change there ??

Sincerly Patrick


Luckily I found the solution:
objectClass="org.eclipse.emf.ecore.EClass"
has to get changed to objectClass="org.eclipse.emf.ecore.EObject"

Previous Topic:[CDO] CDO server bundles deployed in Tomcat via servletbridge
Next Topic:[EMF Compare] Order change produces false add & remove
Goto Forum:
  


Current Time: Tue Apr 23 09:22:15 GMT 2024

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

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

Back to the top