Context Menus [message #194069] |
Mon, 23 June 2008 09:57 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.16366 seconds