Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Participate in CopyAction
Participate in CopyAction [message #335714] Thu, 23 April 2009 04:47 Go to next message
Eclipse UserFriend
Originally posted by: mail.andreasscharf.com

Hi,

I think I have a common problem but I don't know how to solve it: I
simply want to participate in the PasteAction when the user copy
resources from my own Navigator implementation. The Navigator registers
an EditActionProvider which itself provides the EditActionGroup which
contains the actions for Copy/Paste/Delete. If the user copys a resource
and paste it somewhere else, I want to do the normaly copy/paste action
and afterwards I need to modify some IDs in the copied file.

I already have tried to do it via the ltk participants (which obviously
only works for Delete actions) and by adding my own action provider via
the org.eclipse.ui.navigator.navigatorContent extension-point. But in
both cases I don't get sufficient results.

Any hints?

Greetings,
Andreas
Re: Participate in CopyAction [message #335732 is a reply to message #335714] Fri, 24 April 2009 06:44 Go to previous message
Eclipse UserFriend
Andreas Scharf wrote:
> Hi,
>
> I think I have a common problem but I don't know how to solve it: I
> simply want to participate in the PasteAction when the user copy
> resources from my own Navigator implementation.

You can use IExecutionListener from the Command Framework and listen
for the execution of the Command (org.eclipse.ui.edit.paste)

See:
http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-it ems.html

- Prakash
---
http://blog.eclipse-tips.com
Previous Topic:How to Create Problem Markers on Editor
Next Topic:Ganymede - not ready for primetime
Goto Forum:
  


Current Time: Sat May 10 19:00:42 EDT 2025

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

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

Back to the top