Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » examples of cut/copy/paste of domain objects in TableViewer
examples of cut/copy/paste of domain objects in TableViewer [message #654659] Wed, 16 February 2011 15:21 Go to next message
SlowStrider Mising name is currently offline SlowStrider Mising name
Messages: 115
Registered: July 2009
Senior Member
I have searched google for some time, but I cannot find a good example on how to implement cut/copy/paste for domain objects.

I have a TableViewer in which each row corresponds to a domain object (a ProductOrderLine); the input is a List<ProductOderLine>. The user can select multiple ProductOrderLines and should be able to reorder and duplicate them by using cut/copy/paste, ctrl-x, ctrl-c and ctrl-v.

Also being able to use drag and drop would be great but this is not a requirement.

Can anyone point me in the right direction or provide a link to an example/tutorial?

(I am using Eclipse RCP)

[Updated on: Wed, 16 February 2011 15:23]

Report message to a moderator

Re: examples of cut/copy/paste of domain objects in TableViewer [message #654666 is a reply to message #654659] Wed, 16 February 2011 15:46 Go to previous message
SlowStrider Mising name is currently offline SlowStrider Mising name
Messages: 115
Registered: July 2009
Senior Member
Oops, my bad, of course this article from 2003 explains drag and drop and copy/paste.

Is this still current? Does anyone have good/bad experiences with using DND or copy/paste in TableViewers?
Previous Topic:TableViewer use case
Next Topic:Multiple ApplicationWindow-instances?
Goto Forum:
  


Current Time: Thu Oct 23 17:27:27 GMT 2014

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

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