Skip to main content



      Home
Home » Eclipse Projects » GEF » copy & paste in GEF
copy & paste in GEF [message #18158] Tue, 27 August 2002 13:17 Go to next message
Eclipse UserFriend
Hi,

Is copy & paste supported in GEF? How should I register the actions to
the registry if the CopyAction and PasteAction aren't provided in
com.ibm.etools.gef.ui.actions package?

Thanks.
Shelley
Re: copy & paste in GEF [message #18176 is a reply to message #18158] Tue, 27 August 2002 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

The registry is just a Map for actions. You can put anything in it. The
purpose of the registry is to manage disposing of Actions, which must be
done to avoid memory leaks. And by sharing this registry with other parts
of your Editor, you only have to do the dispose in one place.

Cut/Copy/Paste are global actions. You ActionBarContributor must register
them with the workbench in the same way that GEF's ActionBarContirbutor
register's Undo/Redo. GEF does not provide C/C/P support because this is
model specific.

"Shelley" <lshelley@ca.ibm.com> wrote in message
news:akgc6r$jkb$1@rogue.oti.com...
> Hi,
>
> Is copy & paste supported in GEF? How should I register the actions to
> the registry if the CopyAction and PasteAction aren't provided in
> com.ibm.etools.gef.ui.actions package?
>
> Thanks.
> Shelley
>
>
Re: copy & paste in GEF [message #18213 is a reply to message #18176] Tue, 27 August 2002 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lshelley.ibm.com

Thanks. Any help on implementating generic Copy and Paste action classes.
Can I refer to the CopyAction class in org.eclipse.ui.views.navigator?
Or could you suggest some sample code?

Thanks.

Shelley

Randy Hudson wrote:

> The registry is just a Map for actions. You can put anything in it. The
> purpose of the registry is to manage disposing of Actions, which must be
> done to avoid memory leaks. And by sharing this registry with other parts
> of your Editor, you only have to do the dispose in one place.

> Cut/Copy/Paste are global actions. You ActionBarContributor must register
> them with the workbench in the same way that GEF\\\\\\\'s
ActionBarContirbutor
> register\\\\\\\'s Undo/Redo. GEF does not provide C/C/P support because
this is
> model specific.

> \\\\\\\"Shelley\\\\\\\" <lshelley@ca.ibm.com> wrote in message
> news:akgc6r$jkb$1@rogue.oti.com...
> > Hi,
> >
> > Is copy & paste supported in GEF? How should I register the actions to
> > the registry if the CopyAction and PasteAction aren\\\\\\\'t provided in
> > com.ibm.etools.gef.ui.actions package?
> >
> > Thanks.
> > Shelley
> >
> >
Re: copy & paste in GEF [message #18420 is a reply to message #18176] Thu, 29 August 2002 10:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Bram.Stieperaere.REMOVEskynet.be

another copy-paste question: lots of diagramming tools (like Rose) support
copy/paste of the current selection in a diagram into the Clipboard of
Windows (so it can be pasted in Word)
Is this technically possible? How would a solution look like?

Bram
Re: copy & paste in GEF [message #229750 is a reply to message #18420] Wed, 24 January 2007 10:21 Go to previous message
Eclipse UserFriend
Originally posted by: hryd.wanadoo.es

Goodmorning!

Paste in GEF ? example
Previous Topic:How to update connections to sub-figures?
Next Topic:Why nobody cares about Cut, Copy and Paste ?
Goto Forum:
  


Current Time: Sun May 11 17:53:55 EDT 2025

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

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

Back to the top