Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Why objectContribution doesn't work?
Why objectContribution doesn't work? [message #550747] Wed, 04 August 2010 09:02 Go to next message
Ilya Ivanov is currently offline Ilya IvanovFriend
Messages: 3
Registered: August 2010
Junior Member
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 14:30 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Thu Sep 20 20:47:10 GMT 2018

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

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

Back to the top