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 #551068] Thu, 05 August 2010 06:06 Go to next message
duanf  is currently offline duanf Friend
Messages: 7
Registered: August 2010
Junior Member
Hello,

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 not 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 cause this problem.
I just know the MyView is created by me ,while the view PackageExplorer is not.


Thanks.

[Updated on: Thu, 05 August 2010 06:14]

Report message to a moderator

Re: How to add a popupMenu to a view [message #551161 is a reply to message #551068] 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:Included feature - from update site?
Next Topic:How to add a popupMenu to a view
Goto Forum:
  


Current Time: Thu Nov 27 05:52:42 GMT 2014

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

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