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