Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Please Help - Adding a menu item to a context menu
Please Help - Adding a menu item to a context menu [message #25716] Tue, 22 August 2006 09:58 Go to next message
Eclipse UserFriend
Originally posted by: senthil.periasamy.flextronicssoftware.com

Hi,

I want to add a context menu item in a GMF project.I have developed the
project using the plugin org.eclipse.gmf.map_1.0.0.v20060627-1200.jar

In my project I have created a class in
org.eclipse.examples.mindmap.diagram.providers.mindmapContex tMneuProvider
which extends DiagramContextMenuProvider.and a
MindmapContributionItemProvider which extends
DiagramContributionItemProvider in which I added a menu item.

Also in my plugin.xml i have added the lines

<extension
point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
<contributionItemProvider

class="mindmap.diagram.providers.MindmapContributionItemProvider "
checkPluginLoaded="false">
<Priority name="High"/>
<popupContribution
class=" org.eclipse.gmf.runtime.diagram.ui.providers.MindmapContextM enuProvider ">
<popupMenuGroup id="flexIVR">
</popupMenuGroup>
</popupContribution>
</contributionItemProvider>
</extension>


Even then I am not getting my menu item not added to the context menu.

Also I should add it through code only.

Regards
Senthil
Re: Please Help - Adding a menu item to a context menu [message #27158 is a reply to message #25716] Wed, 23 August 2006 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: senthil.periasamy.flextronicssoftware.com

Need Help Please
Re: Please Help - Adding a menu item to a context menu [message #29554 is a reply to message #27158] Fri, 25 August 2006 02:41 Go to previous message
Eclipse UserFriend
Originally posted by: khai.n.situvista.com

There are only a few steps to perform so it's not too bad.

You can find a section about it in the GMF tutorial (at the end):
http://wiki.eclipse.org/index.php/GMF_Tutorial_Part_3

Try to follow that and if you run into problems then come back and post
your specific question(s).

There aren't too many steps so you might just get it in one go:-)

-- Khai --

Senthil wrote:
> Need Help Please
>
Previous Topic:Listening to delocation / movement of an association
Next Topic:Graphical edition to ecore model
Goto Forum:
  


Current Time: Fri May 09 02:28:17 EDT 2025

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

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

Back to the top