Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » re-target copy command wtih handler
re-target copy command wtih handler [message #337006] Mon, 20 July 2009 19:07
John Kenny is currently offline John KennyFriend
Messages: 62
Registered: July 2009
Member
I want to handle the copy command for IProjects which have my Nature
assigned to them. I am trying to use a command handler, but my handler
never gets called. Any idea what I am doing wrong or if there is a better
way to do this:

<extension
id="com.jjk.applications.sce.ui.SceNature"
name="Sce Project Nature"
point="org.eclipse.core.resources.natures">


<handler
class="com.jjk.applications.sce.ui.action.HandlerEclipseCopy "
commandId="org.eclipse.ui.edit.copy">
<activeWhen>
<or>
<with
variable="selection">
<instanceof
value="org.eclipse.core.resources.IProject">
</instanceof>
<test
property="org.eclipse.core.resources.projectNature
"
value="com.jjk.applications.sce.ui.SceNature">
</test>
</with>
<with
variable="activeMenuSelection">
<instanceof
value="org.eclipse.core.resources.IProject">
</instanceof>
<test
property="org.eclipse.core.resources.projectNature
"
value="com.jjk.applications.sce.ui.SceNature">
</test>
</with>
</or>
</activeWhen>
</handler>
Previous Topic:How To Extend An Existing Perspective Such As The Web Perspective
Next Topic:lightweight label decorator lazy instantiation problem
Goto Forum:
  


Current Time: Fri Aug 30 06:45:14 GMT 2024

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

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

Back to the top