Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Context Menus
Context Menus [message #194069] Mon, 23 June 2008 09:57 Go to next message
Eclipse UserFriend
Originally posted by: lunaris.bluemoon.gmail.com

Hi guys,

I've extended a diagram editor with a context menu that I'm contributing
using the
org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
extension point. The menu works fine until I close a diagram and reopen
it or another one. At this point the menu is visible, though disabled
and so I can't use it / even see if actions have been added to it.

I do have a contribution policy class installed but I have debugged it
and it appears to be working correctly. In one instance I followed the
debugger all the way back to the Contribution Service and the menu
started working again, but I could not determine the problem.

I have also tried removing the policy and seeing if the menu works. I'm
using the DiagramContextMenuProvider and even with no
<popupStructuredContributionCriteria>s installed I get no results.

Has anyone else encountered this problem? Any suggestions?

Thanks for any help,
Will Jones
Re: Context Menus [message #194079 is a reply to message #194069] Mon, 23 June 2008 10:05 Go to previous message
Eclipse UserFriend
Originally posted by: lunaris.bluemoon.gmail.com

Apologies for the spam - I think I've solved it; I was using a
HashMap<String, IAction> to cache my menu items, clearing that when a
new menu manager was requested seems to have remedied the problem :)

Will

Will Jones wrote:
> Hi guys,
>
> I've extended a diagram editor with a context menu that I'm contributing
> using the
> org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
> extension point. The menu works fine until I close a diagram and reopen
> it or another one. At this point the menu is visible, though disabled
> and so I can't use it / even see if actions have been added to it.
>
> I do have a contribution policy class installed but I have debugged it
> and it appears to be working correctly. In one instance I followed the
> debugger all the way back to the Contribution Service and the menu
> started working again, but I could not determine the problem.
>
> I have also tried removing the policy and seeing if the menu works. I'm
> using the DiagramContextMenuProvider and even with no
> <popupStructuredContributionCriteria>s installed I get no results.
>
> Has anyone else encountered this problem? Any suggestions?
>
> Thanks for any help,
> Will Jones
Previous Topic:How to traverse diagram as a directed graph
Next Topic:GMF validation issue
Goto Forum:
  


Current Time: Fri Apr 26 04:35:30 GMT 2024

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

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

Back to the top