Skip to main content


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 ZhaoliangFriend
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: Thu Apr 25 13:56:24 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