how to add popmenu to a editor ot multipage editor [message #332203] |
Fri, 10 October 2008 05:08 |
Archana![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=archana.shukla%40sap.com) Messages: 16 Registered: July 2009 |
Junior Member |
|
|
Problem Statement:
I have to add a popup menu on the one of the editor page of a multipage
editor.
Background:
I have contributed multipage editor thru 'org.eclipse.ui.editors'
extension point. Now, as popup menus are added to editor [as per Help], I
added viewerContribution in 'org.eclipse.ui.popupMenus' extension point
with targetID of the multipage editor. Then I added a menu and action. But
all in vain as i couldnot see the menu on any of the editor page of
multipage editor.
Snippet of plugin.xml:
<extension
point="org.eclipse.ui.editors">
<editor
class="multipage.editors.SomeMultipageEditor"
id="some.multipage.editor"
name="Some Editor1">
</editor>
</extension>
<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
id="multipage.editor.viewerContribution"
targetID="some.multipage.editor">
<menu
id="editor.menu"
label="Menu1">
<separator
name="sep1">
</separator>
</menu>
<action
class="test.multipage.editor.Delete"
id="multipage.editor.action.delete"
label="Delete"
menubarPath="editor.menu/sep1">
</action>
</viewerContribution>
</extension>
Can someone help me out in locating the problem or point out any
alternative approach to achieve the same.
Thanks In Advance
|
|
|
Powered by
FUDForum. Page generated in 0.02811 seconds