Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [org.eclipse.ui.navigator.viewer] doesn't work in PackageExplorer([org.eclipse.ui.navigator.viewer] doesn't work in PackageExplorer)
[org.eclipse.ui.navigator.viewer] doesn't work in PackageExplorer [message #834519] Mon, 02 April 2012 03:26
Wang Zhaoliang is currently offline Wang Zhaoliang
Messages: 9
Registered: April 2012
Junior Member
I realy need some help !

I saw that you have answered some questions about Common Navigator Framework, now I have a defination below. I want to use "my.app.client.workshop.MyPasteActionProvider" to block copy and paste menu, and it works in "ProjectExplorer", but when I change the viewerId to "org.eclipse.jdt.ui.PackageExplorer", it dose not work in "PackageExplorer", is there anything wrong with my code ?

Best regards !!


<extension
point="org.eclipse.ui.navigator.viewer">
<viewerActionBinding
viewerId="org.eclipse.ui.navigator.ProjectExplorer">
<includes>
<actionExtension
pattern="my.app.client.actions.MyAppEditActionExtension">
</actionExtension>
</includes>
</viewerActionBinding>
</extension>
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<actionProvider
class="my.app.client.workshop.MyPasteActionProvider"
id="my.app.client.actions.MyAppEditActionExtension"

overrides="org.eclipse.ui.navigator.resources.actions.EditActions "
priority="highest">
<enablement>
<!-- A hack to allways be enabled -->
<not>
<systemTest
property="MyApp"
value="WONT-EVER-BE-SET">
</systemTest>
</not>
</enablement>
</actionProvider>
</extension>
Previous Topic:Re: Simple Jface ListViewer
Next Topic:propertyTester for perspective in visibleWhen expression
Goto Forum:
  


Current Time: Wed Oct 22 22:26:32 GMT 2014

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

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