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 15:07
John Kenny is currently offline John Kenny
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: Thu Aug 28 01:33:54 EDT 2014

Powered by FUDForum. Page generated in 0.13641 seconds