Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [Grid/GridViewer] IndexOutOfBoundsException
[Grid/GridViewer] IndexOutOfBoundsException [message #61111] Tue, 09 December 2008 16:10 Go to next message
Tommy Gustafsson is currently offline Tommy GustafssonFriend
Messages: 12
Registered: July 2009
Junior Member
Hi

I came across a IndexOutOfBoundsException when using the Grid together with
the GridViewer. I'm using CellSelectionEnabled(true) and have added a filter
to the GridViewer. When the Filter returns 0 rows and you click on the
TopLeft Corner (ie selecting all cells) the following exeception is thrown:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.eclipse.nebula.widgets.grid.Grid.selectAllCells(Grid.jav a:8798)
at org.eclipse.nebula.widgets.grid.Grid.onMouseDown(Grid.java:6 708)
at org.eclipse.nebula.widgets.grid.Grid.access$6(Grid.java:6526 )
at org.eclipse.nebula.widgets.grid.Grid$10.mouseDown(Grid.java: 6402)

BR
Tommy
Re: [Grid/GridViewer] IndexOutOfBoundsException [message #61135 is a reply to message #61111] Tue, 09 December 2008 18:25 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Hi Tommy,

Please create bugs for all things you find so that I can work on them
(hopefully next weekend I can dedicate some time to grid). If you even
produce patches that even more welcome!

My schedule is currently filled with Nebula-Project-Lead work to get
Nebula back in shape.

Tom

Tommy schrieb:
> Hi
>
> I came across a IndexOutOfBoundsException when using the Grid together with
> the GridViewer. I'm using CellSelectionEnabled(true) and have added a filter
> to the GridViewer. When the Filter returns 0 rows and you click on the
> TopLeft Corner (ie selecting all cells) the following exeception is thrown:
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at org.eclipse.nebula.widgets.grid.Grid.selectAllCells(Grid.jav a:8798)
> at org.eclipse.nebula.widgets.grid.Grid.onMouseDown(Grid.java:6 708)
> at org.eclipse.nebula.widgets.grid.Grid.access$6(Grid.java:6526 )
> at org.eclipse.nebula.widgets.grid.Grid$10.mouseDown(Grid.java: 6402)
>
> BR
> Tommy
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [Grid/GridViewer] IndexOutOfBoundsException [message #592925 is a reply to message #61111] Tue, 09 December 2008 18:25 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Hi Tommy,

Please create bugs for all things you find so that I can work on them
(hopefully next weekend I can dedicate some time to grid). If you even
produce patches that even more welcome!

My schedule is currently filled with Nebula-Project-Lead work to get
Nebula back in shape.

Tom

Tommy schrieb:
> Hi
>
> I came across a IndexOutOfBoundsException when using the Grid together with
> the GridViewer. I'm using CellSelectionEnabled(true) and have added a filter
> to the GridViewer. When the Filter returns 0 rows and you click on the
> TopLeft Corner (ie selecting all cells) the following exeception is thrown:
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at org.eclipse.nebula.widgets.grid.Grid.selectAllCells(Grid.jav a:8798)
> at org.eclipse.nebula.widgets.grid.Grid.onMouseDown(Grid.java:6 708)
> at org.eclipse.nebula.widgets.grid.Grid.access$6(Grid.java:6526 )
> at org.eclipse.nebula.widgets.grid.Grid$10.mouseDown(Grid.java: 6402)
>
> BR
> Tommy
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:[Grid/GridViewer] IndexOutOfBoundsException
Next Topic:Grid - Grid Colunm
Goto Forum:
  


Current Time: Sat Dec 20 03:51:11 GMT 2014

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

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