re-target copy command wtih handler [message #337006] |
Mon, 20 July 2009 15:07 |
Eclipse User |
|
|
|
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>
|
|
|
Powered by
FUDForum. Page generated in 0.04445 seconds