How to add a popupMenu to a view [message #551068] |
Thu, 05 August 2010 06:06 |
duanf 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03058 seconds