Skip to main content



      Home
Home » Eclipse Projects » NatTable » How to get the Copy data of a editable cell (Collect the copy data of the editable cell)
How to get the Copy data of a editable cell [message #1725705] Mon, 07 March 2016 02:41 Go to next message
Eclipse UserFriend
Hi All,

Please see the attachment for better understanding of the below query.

To handle some use case I need to collect the copied data from the particular cell in the nat table.

In my nat table some column cells are editable and some columns are non editable, so user can copy the data from the editable cell of a particular column. And I do not know where that copied data will be stored and how to retrieve the data from that.

user either copy the data by right click on the editable cell and click on copy link and also copy with CTRL+C.

please suggest me how to get the copied data in my class.

Thank you

Regards
Shashi

  • Attachment: Copy.png
    (Size: 6.05KB, Downloaded 236 times)
Re: How to get the Copy data of a editable cell [message #1725708 is a reply to message #1725705] Mon, 07 March 2016 03:10 Go to previous messageGo to next message
Eclipse UserFriend
As you are talking about copying data from an open editor, you are simply talking about default SWT copy&paste mechanisms. Maybe this helps: http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/CopyandPaste.htm
Re: How to get the Copy data of a editable cell [message #1725725 is a reply to message #1725708] Mon, 07 March 2016 05:21 Go to previous messageGo to next message
Eclipse UserFriend
Thank you Dirk,

In this case do I contribute my own copy paste actions for a particular column cell? if yes how to disable / remove the default context actions.

Is there any way to get the copied data from the default copy action?
Re: How to get the Copy data of a editable cell [message #1725727 is a reply to message #1725725] Mon, 07 March 2016 05:25 Go to previous message
Eclipse UserFriend
How about looking into the linked example and try to read the data from the Clipboard the same way as it is done in the listener there?

If you want to customize the default SWT text editor, this is the wrong forum.
Previous Topic:Print & fit to page
Next Topic:how to hide multiple Columns in Nattable
Goto Forum:
  


Current Time: Mon Jun 23 09:46:37 EDT 2025

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

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

Back to the top