debugging menu contributions [message #335652] |
Sun, 19 April 2009 14:54 |
Eclipse User |
|
|
|
Originally posted by: marc.esher.comcast.net
All,
I've got a plugin trying to contribute ecf docshare to the popup menu of a
specific editor. I *think* I have the contextID of the editor correct, but I
can't be sure b/c it's not specified in the plugin.xml anywhere. it's a
commercial editor.
Here's what I have in my plugin xml:
<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:#com.adobe.flexbuilder.editors.mxml.MXMLCodeContext ">
<dynamic
class=" org.eclipse.ecf.internal.provisional.docshare.menu.DocShareR osterMenuContributionItem "
id="org.miz.mxmldocsharecontribution">
</dynamic>
</menuContribution>
</extension>
And I have all (I think) the required dependencies set up correctly in the
manifest. Still, the menu never gets added.
I'm wondering: is there a way to debug when something isn't added to the
popup menu? Or, is there a way to definitively get the proper popup
locationURI for any editor? I'm fairly certain that the menu is not being
contributed because when I set a breakpoint in the
DocShareRosterMenuContributionItem, it never trips. It does catch on other
editors where DocShare is working successfully, however.
Any help learning how to debug the guts of this thing is most appreciated.
marc
|
|
|
|
|
Re: debugging menu contributions [message #335828 is a reply to message #335776] |
Sat, 02 May 2009 18:46 |
Eclipse User |
|
|
|
Originally posted by: marc.esher.comcast.net
Thanks for the help guys. It's quite valuable.
Marc
"Remo Loetscher" <remo.loetscher@postfinance.ch> wrote in message
news:49f846e1$1@news.post.ch...
> Hi marc
>
> To debug this kind of problems I've developed an eclipse rcp inspection
> plugin called yari (yet another rcp inspector). You will find it on
> sourceforge (http://yari.wiki.sourceforge.net/).
>
> To find the identifier:
> Open the view YARI->Eclipse Inspector. Inspect the current editor by
> pushing the smiley and click on the editor part.
> In the tree navigation of the Eclipse Inspector view open "Workbench" ->
> "Part's Site". The property "contextMenuIDs" holds the correct menu
> contribution identifiers. Double click on it to see all elements.
>
> hth,
>
> remo
>
> Marc E wrote:
>> All,
>> I've got a plugin trying to contribute ecf docshare to the popup menu of
>> a specific editor. I *think* I have the contextID of the editor correct,
>> but I can't be sure b/c it's not specified in the plugin.xml anywhere.
>> it's a commercial editor.
>>
>> Here's what I have in my plugin xml:
>>
>> <extension point="org.eclipse.ui.menus">
>> <menuContribution
>> locationURI="popup:#com.adobe.flexbuilder.editors.mxml.MXMLCodeContext ">
>> <dynamic
>> class=" org.eclipse.ecf.internal.provisional.docshare.menu.DocShareR osterMenuContributionItem "
>> id="org.miz.mxmldocsharecontribution">
>> </dynamic>
>> </menuContribution>
>> </extension>
>>
>> And I have all (I think) the required dependencies set up correctly in
>> the manifest. Still, the menu never gets added.
>>
>> I'm wondering: is there a way to debug when something isn't added to the
>> popup menu? Or, is there a way to definitively get the proper popup
>> locationURI for any editor? I'm fairly certain that the menu is not
>> being contributed because when I set a breakpoint in the
>> DocShareRosterMenuContributionItem, it never trips. It does catch on
>> other editors where DocShare is working successfully, however.
>>
>> Any help learning how to debug the guts of this thing is most
>> appreciated.
>>
>> marc
|
|
|
Powered by
FUDForum. Page generated in 0.03340 seconds