Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How to add readonly textbox in table Viewer.(User want to select and copy the required text string from table viewers cell.)
How to add readonly textbox in table Viewer. [message #1467817] Mon, 10 November 2014 10:32 Go to next message
Sumit Singh is currently offline Sumit SinghFriend
Messages: 141
Registered: October 2012
Location: Bangalore
Senior Member

Hi all,

For TableViewer some Help Needed:
1. User want to select the text in tables cell and copy it (Like in text box). So my question is how to add readonly textbox in table viewer.
2. Is it possible to add double click listener for some specific cell in Table Viewer.


Thanks,
Sumit

[Updated on: Mon, 10 November 2014 10:33]

Report message to a moderator

Re: How to add readonly textbox in table Viewer. [message #1476722 is a reply to message #1467817] Mon, 17 November 2014 09:44 Go to previous message
Demian Tols is currently offline Demian TolsFriend
Messages: 3
Registered: August 2014
Junior Member
Well, as far as I know, there is no elegant solution for this, so you can make some trick.

1. You can add an EditingSupport, and make sure you are not changing the value by simply return from setValue() method. I think that will work.
2. Yeah, that would be great but no.) Otherwise, you can add a double click listener for the table and in a handleEvent method decide if it's a cell you are looking for.
Previous Topic:TextCellEditor does not show edited content
Next Topic:How to access the data provider instance created in the Activator of my plug-in
Goto Forum:
  


Current Time: Thu Apr 25 19:47:01 GMT 2024

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

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

Back to the top