Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Copy and Paste
Copy and Paste [message #103665] Wed, 05 November 2003 14:05 Go to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.Rigidsoftware.com

I read all the back articles in this newsgroup about copy but was unable
to come up with a definitive answer. Their are menuitems copy & paste,
but they are not enabled when my EditParts are selected.

Delete is easy because that action comes through the EditPolicy with the
request already formed.

I can't begin to imagine how copy and paste would reach my container since
their is no request for those. Further, upon execution of this command,
where and how exactly am I to copy my objects?

I need a little guidance on this one.



Thanks!


CL
Re: Copy and Paste [message #103710 is a reply to message #103665] Wed, 05 November 2003 15:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You'll have to look at SWT for details on copy and paste. I believe there
is a clipboard class. There are shortcuts you can take if you do not need
to copy and paste across different applications.

The copy action should be just like delete. It is a global action, create
an action handler which listens to your editor's selection, and register it.

"CL [dnoyeB] Gilbert" <Lamont_Gilbert@Rigidsoftware.com> wrote in message
news:pan.2003.11.05.14.05.43.976060@Rigidsoftware.com...
> I read all the back articles in this newsgroup about copy but was unable
> to come up with a definitive answer. Their are menuitems copy & paste,
> but they are not enabled when my EditParts are selected.
>
> Delete is easy because that action comes through the EditPolicy with the
> request already formed.
>
> I can't begin to imagine how copy and paste would reach my container since
> their is no request for those. Further, upon execution of this command,
> where and how exactly am I to copy my objects?
>
> I need a little guidance on this one.
>
>
>
> Thanks!
>
>
> CL
Re: Copy and Paste [message #103733 is a reply to message #103710] Wed, 05 November 2003 16:48 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.Rigidsoftware.com

That is what I did. But I keep forgetting to also add the RetargetAction.
So once I registered my own Copy Action with the workbench's ID, then
added a corresponding RetargetAction, it started working. Well at least
its hooked in and calling my action as required, I can do my own
implementation.

CL

On Wed, 05 Nov 2003 10:13:23 -0500, Randy Hudson wrote:

> You'll have to look at SWT for details on copy and paste. I believe
> there is a clipboard class. There are shortcuts you can take if you do
> not need to copy and paste across different applications.
>
> The copy action should be just like delete. It is a global action,
> create an action handler which listens to your editor's selection, and
> register it.
>
Previous Topic:Absolute beginner question about GEF1 example on wiki
Next Topic:ANN: GEF 2.1.2 Released
Goto Forum:
  


Current Time: Wed Jan 15 14:52:39 GMT 2025

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

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

Back to the top