Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Why objectContribution doesn't work?
Why objectContribution doesn't work? [message #550747] Wed, 04 August 2010 05:02 Go to next message
Eclipse UserFriend
There's some objectContribution in third party plugin.
I need it to be available in popup menu in my plugin. If I correctly understand all that I need is to add AdapterFactory that will adapt my selection class type to the type required by objectContribution definition. But for me it didn't work for some reason.

Moreover... I configured adapter factory to adapt any objects:
<factory adaptableType="java.lang.Object"
...
>


In this case the objectContribution appeared in almost all eclipse menus, but my view was not affected... It driving me crazy Confused

Seems the problem is in my plugin that it doesn't accept objectContrubutions, but I can't find what's wrong.
Re: Why objectContribution doesn't work? [message #553135 is a reply to message #550747] Mon, 16 August 2010 10:30 Go to previous message
Eclipse UserFriend
How did you register your context menu?
getSite().registerContextMenu(*) ? What was the exact code?

Just as an aside, make sure your adapt your type to the
objectContribution type you want. Don't add an adapter from Object,
unless you really can adapt *any* type to the target type.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:Re: [eclipse plugin ] display a text in a view and modify it
Next Topic:Shutdown Eclipse from linux command line
Goto Forum:
  


Current Time: Sun Aug 31 02:50:59 EDT 2025

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

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

Back to the top