Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how to add popmenu to a editor ot multipage editor
how to add popmenu to a editor ot multipage editor [message #332203] Fri, 10 October 2008 05:08
Archana is currently offline ArchanaFriend
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
Previous Topic:show more tabs with opened files
Next Topic:Equinox and RCP trainings
Goto Forum:
  


Current Time: Sun Dec 22 06:22:18 GMT 2024

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

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

Back to the top