Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to add a popupMenu to a view
How to add a popupMenu to a view [message #606432] Thu, 05 August 2010 06:06 Go to next message
duanf  is currently offline duanf Friend
Messages: 7
Registered: August 2010
Junior Member
I want to add a popupMenu to a view[id=com.my.MyView].The plugin.xml fragment as follow:

<viewerContribution
id="com.rational.test.ft.advance.sampleViewerContribution"
targetID="com.my.MyView">
<action
id="com.rational.test.ft.advance.viewerActionTest"
label="Sample Viewer Operation"
class="com.rational.test.ft.advance.actions.SampleViewerAction "
menubarPath="additions">
</action>
</viewerContribution>

------------------------------------------------------------
This does not work.I can see the menu Item.
When I set the targetID ="org.eclipse.jdt.ui.PackageExplorer"..It works and I can see the menu item.
I am sure that MyView can work.Which difference between these two views may cayse this problem.
I just know the MyView is created by me ,which the view PackageExplorer is not.
Re: How to add a popupMenu to a view [message #606443 is a reply to message #606432] Thu, 05 August 2010 13:28 Go to previous message
duanf  is currently offline duanf Friend
Messages: 7
Registered: August 2010
Junior Member
I have known.
Should complete the function createPartControl(Composite parent)
Previous Topic:How to add a popupMenu to a view
Next Topic:Changing permissions or root files
Goto Forum:
  


Current Time: Fri Apr 26 21:25:44 GMT 2024

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

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

Back to the top