DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Multi row selection in TableViewer with Editing Support
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Join Date: May 2009
Unhappy Multi row selection in TableViewer with Editing Support - 06-11-2009, 04:20 AM

Hi,

We have a tableviewer which we use for editing tabular data. This
viewer has Editing Support attached to it. Now the problem is, i can't
select multiple rows in this table. I have tried passing the style
SWT.MULTI to table, but that didn't worked. Whenever i click on a
cell, it just selects that particular cell and there is no effect of
using SHIFT or CTRL keys to select multiple rows.

Do you know if this is a bug in TableViewer editing or there is
another technique to do this ?

Thanks in advance

Mustufa
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 17
Thanks: 1
Thanked 2 Times in 2 Posts
Join Date: Jan 2009
Default 06-11-2009, 12:19 PM

Hi Mustufa,

have you tried the style SWT.FULL_SELECTION? That worked fine for my TableViewer, but I'm not providing table cell editing, so it might be slightly different.

Regards,
Heiko
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2009
Default 06-11-2009, 01:22 PM

Hi,
As per my experience, if a table or tree viewer uses editing support, it will not be able to have multi selection support. Instead of using editing support, you set CellModifiers and CellEditors manually to the viewer without using the editing support. and the multiple selection will work(It worked fine for me). But the only dis-advantage is, u cannot have double click editing activation in this way. But I compromised this in my application by providing editing activation for clicking on the cell twice(not double click). I used canModify method in the CellModifier to make the editing available for the second click, and the first click for selection. If u cannot compromise in this way means, u have to compromise the inavailbility of multiple selection using the editing support. If there is any other way without compromising any of these things means it is most welcome, because I'm very much eager to know it.

Regards,
Loganathan. S.
Reply With Quote
Reply

Tags
multi row selection

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
db4o Eclipse support gerps Eclipse 0 05-22-2009 12:32 PM
Extending CDT to support new languages: org.eclipse.cdt.core.AdditionalLanguages omertavo Eclipse 0 03-23-2009 05:29 AM
EMF/GMF multi-page editor resource synchronize question? Hexise Eclipse 0 03-02-2009 08:48 PM
Multiple selection in TableViewer jayjamba Eclipse 6 07-22-2008 04:16 AM
RCP + Web Start + multi platform mfreschi Eclipse 4 06-10-2008 12:36 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com