Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Grid: GridViewer selection service does not support cell selection
Grid: GridViewer selection service does not support cell selection [message #57773] Tue, 12 August 2008 14:33 Go to next message
David Kyle is currently offline David Kyle
Messages: 125
Registered: July 2009
Senior Member
I'm using GridViewer in Eclipse 3.3.

viewer = new GridTableViewer(aParent, SWT.BORDER | SWT.V_SCROLL |
SWT.H_SCROLL);
viewer.getGrid().setCellSelectionEnabled(true);
getSite().setSelectionProvider(viewer);

I can select various combinations of cells.

The problem is when I access the selection via the selection service I see a
list of the rows selected but there is no information about which cell(s)
have been selected. Do I need to implement my own
StructuredViewer.getSelectionFromWidget() to return only cells values or
have I completely misunderstood how gridviewer and the selection service
works?

Thanks,
David Kyle
Re: Grid: GridViewer selection service does not support cell selection [message #57801 is a reply to message #57773] Tue, 12 August 2008 15:52 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5239
Registered: July 2009
Senior Member
The IStructuredSelection provide by GridViewer only represents the rows
selected not the single cells.

I have a modified version of GridViewer in my workspace which deals also
records the selected cells but I haven't published the code yet as a patch.

So please file a bug against Nebula/Grid if there's not already one and
CC me there.

Tom

David Kyle schrieb:
> I'm using GridViewer in Eclipse 3.3.
>
> viewer = new GridTableViewer(aParent, SWT.BORDER | SWT.V_SCROLL |
> SWT.H_SCROLL);
> viewer.getGrid().setCellSelectionEnabled(true);
> getSite().setSelectionProvider(viewer);
>
> I can select various combinations of cells.
>
> The problem is when I access the selection via the selection service I see a
> list of the rows selected but there is no information about which cell(s)
> have been selected. Do I need to implement my own
> StructuredViewer.getSelectionFromWidget() to return only cells values or
> have I completely misunderstood how gridviewer and the selection service
> works?
>
> Thanks,
> David Kyle
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: Grid: GridViewer selection service does not support cell selection [message #57870 is a reply to message #57801] Wed, 13 August 2008 09:55 Go to previous message
David Kyle is currently offline David Kyle
Messages: 125
Registered: July 2009
Senior Member
Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=244021.

David Kyle
http://richclientplatform.blogspot.com/
Re: Grid: GridViewer selection service does not support cell selection [message #591723 is a reply to message #57773] Tue, 12 August 2008 15:52 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5239
Registered: July 2009
Senior Member
The IStructuredSelection provide by GridViewer only represents the rows
selected not the single cells.

I have a modified version of GridViewer in my workspace which deals also
records the selected cells but I haven't published the code yet as a patch.

So please file a bug against Nebula/Grid if there's not already one and
CC me there.

Tom

David Kyle schrieb:
> I'm using GridViewer in Eclipse 3.3.
>
> viewer = new GridTableViewer(aParent, SWT.BORDER | SWT.V_SCROLL |
> SWT.H_SCROLL);
> viewer.getGrid().setCellSelectionEnabled(true);
> getSite().setSelectionProvider(viewer);
>
> I can select various combinations of cells.
>
> The problem is when I access the selection via the selection service I see a
> list of the rows selected but there is no information about which cell(s)
> have been selected. Do I need to implement my own
> StructuredViewer.getSelectionFromWidget() to return only cells values or
> have I completely misunderstood how gridviewer and the selection service
> works?
>
> Thanks,
> David Kyle
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: Grid: GridViewer selection service does not support cell selection [message #591760 is a reply to message #57801] Wed, 13 August 2008 09:55 Go to previous message
David Kyle is currently offline David Kyle
Messages: 125
Registered: July 2009
Senior Member
Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=244021

David Kyle
http://richclientplatform.blogspot.com/
Previous Topic:GridTableViewer - layout problem
Next Topic:SWT Multiple tumb slider
Goto Forum:
  


Current Time: Thu Jul 24 09:21:23 EDT 2014

Powered by FUDForum. Page generated in 0.04829 seconds