"Paste" action redefinition not complete. [message #484361] |
Mon, 07 September 2009 04:24  |
Eclipse User |
|
|
|
Hello.
I'm using Eclipse Platform 3.4.2 and I'm trying to redefine the "paste"
action in the Project Explorer view.
I used this extension point to redefine the handler of the "paste" action
(it must only be active when the "resource" selected in the Project
Explorer view is managed in VCS) :
<extension point="org.eclipse.ui.handlers">
<handler
class="com.airbus.forges.client.ui.handlers.ForgesPasteHandler "
commandId="org.eclipse.ui.edit.paste">
<activeWhen>
<and>
<with
variable="activePartId">
<equals
value="org.eclipse.ui.navigator.ProjectExplorer">
</equals>
</with>
<iterate>
<adapt type="org.eclipse.core.resources.IResource">
<test
property="org.eclipse.core.resources.projectPersistentProperty "
args="org.eclipse.team.core.repository"/>
</adapt>
</iterate>
</and>
</activeWhen>
</handler>
</extension>
and it works quite fine :
- the keybiding (Ctrl+V) triggers my handler
- the [Edit+Paste] menu action triggers my handler
but :
- the Project Explorer pop-up menu "Paste" action does NOT :-(
Can somebody explain me why ? Isn't this action mapped with the
"org.eclipse.ui.edit.paste" command ?
And how can I do to trigger my handler when using this action ?
Thank you for your help.
JM.D
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25368 seconds