Copy and Paste [message #103665] |
Wed, 05 November 2003 09:05  |
Eclipse User |
|
|
|
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 #103733 is a reply to message #103710] |
Wed, 05 November 2003 11:48  |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03105 seconds