Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Participate in CopyAction
Participate in CopyAction [message #335714] Thu, 23 April 2009 08:47 Go to next message
Eclipse User
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 10:44 Go to previous message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
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: Fri Sep 19 22:04:46 GMT 2014

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

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