Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Additing subtopic to popup menu(Additing subtopic to popup menu at eclipse compare)
Additing subtopic to popup menu [message #869536] Thu, 03 May 2012 10:44
Artem Shutak is currently offline Artem Shutak
Messages: 1
Registered: May 2012
Junior Member
Hello,

I am trying to add new subtopic to the popup menu of a compare 2 files view:

which I open like that: CompareUI.openCompareEditor(input);

I can add a subtopic in case of using TaskList like that:

<extension
id="popups_id"
name="popups"
point="org.eclipse.ui.popupMenus">
<viewerContribution
id="org.spbu.pldoctoolkit.text.viewerContribution1"
targetID="org.eclipse.ui.views.TaskList">
<action
class="my.TestActionDelegate"
id="com.xyz.showXYZ"
label="Show XYZ"
menubarPath="additions"
state="true"
style="toggle">
</action>
</viewerContribution>
</extention>

(TestActionDelegate implements IViewActionDelegate)

But I can't add a subtopic to menu shown above. I am trying something like that:

<extension
id="popups_id"
name="popups"
point="org.eclipse.ui.popupMenus">
<viewerContribution
id="org.spbu.pldoctoolkit.text.viewerContribution1"
targetID="someID">
<action
class="my.TestActionDelegate"
id="com.xyz.showXYZ"
label="Show XYZ"
menubarPath="additions"
state="true"
style="toggle">
</action>
</viewerContribution>
</extention>

what do I need instead of someID? Or what I am doing wrong?
Previous Topic:How to customise ctrl-f key
Next Topic:Run job without reporting progress
Goto Forum:
  


Current Time: Sat Apr 19 08:57:01 EDT 2014

Powered by FUDForum. Page generated in 0.01926 seconds