Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Again Table Refresh Error
Again Table Refresh Error [message #32248] Tue, 12 June 2007 09:39 Go to next message
Thomas Kühne is currently offline Thomas KühneFriend
Messages: 33
Registered: July 2009
Member
Hi,

I have again a Problem with the table Refresh.
I have a view part which shows a search result in a TableViewer.
The search string is provided via a Text criteria and a modify
listener is bound to it. The modify Listener updates the table with

tableViewer.setInput( criteria.getText() );

That works fine when the number of search results are growing. When
a search result get less results then the one before I get the following
Error . The error just occures when
a table item is selected which wil not be in the search result after update

I tried a delelectAll() on the table before refresh but it does not work
out.

I am working with cvs.

The Exception :

java.lang.IllegalArgumentException: Index out of bounds
at org.eclipse.swt.SWT.error(SWT.java:629)
at org.eclipse.swt.SWT.error(SWT.java:588)
at org.eclipse.swt.SWT.error(SWT.java:584)
at org.eclipse.swt.internal.widgets.ItemHolder.getItem(ItemHold er.java:102)
at org.eclipse.swt.widgets.Table.getItem(Table.java:387)
at
org.eclipse.swt.internal.widgets.tableitemkit.TableItemLCA.i sFocused(TableItemLCA.java:224)
at
org.eclipse.swt.internal.widgets.tableitemkit.TableItemLCA.w riteFocused(TableItemLCA.java:171)
at
org.eclipse.swt.internal.widgets.tableitemkit.TableItemLCA.r enderChanges(TableItemLCA.java:89)
at
org.eclipse.swt.lifecycle.AbstractWidgetLCA.render(AbstractW idgetLCA.java:55)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$Rende rVisitor.render(DisplayLCA.java:63)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$Rende rVisitor.doVisit(DisplayLCA.java:47)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidget TreeVisitor.visit(WidgetTreeVisitor.java:25)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:56)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleIte ms(WidgetTreeVisitor.java:88)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:45)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.rende r(DisplayLCA.java:133)
at org.eclipse.swt.internal.lifecycle.Render.execute(Render.jav a:28)
at
org.eclipse.swt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:81)

Any ideas ?

Thanks,
Thomas
Re: Again Table Refresh Error [message #32284 is a reply to message #32248] Tue, 12 June 2007 10:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi,

I am not able to reproduce the exception. Could you open a bug and
attach a small snippet?

Cheers,
Rüdiger

Thomas Kühne wrote:
> Hi,
>
> I have again a Problem with the table Refresh.
> I have a view part which shows a search result in a TableViewer.
> The search string is provided via a Text criteria and a modify
> listener is bound to it. The modify Listener updates the table with
>
> tableViewer.setInput( criteria.getText() );
>
> That works fine when the number of search results are growing. When
> a search result get less results then the one before I get the following
> Error . The error just occures when
> a table item is selected which wil not be in the search result after update
>
> I tried a delelectAll() on the table before refresh but it does not work
> out.
>
> I am working with cvs.
>
> The Exception :
>
> java.lang.IllegalArgumentException: Index out of bounds
> at org.eclipse.swt.SWT.error(SWT.java:629)
> at org.eclipse.swt.SWT.error(SWT.java:588)
> at org.eclipse.swt.SWT.error(SWT.java:584)
> at org.eclipse.swt.internal.widgets.ItemHolder.getItem(ItemHold er.java:102)
> at org.eclipse.swt.widgets.Table.getItem(Table.java:387)
> at
> org.eclipse.swt.internal.widgets.tableitemkit.TableItemLCA.i sFocused(TableItemLCA.java:224)
> at
> org.eclipse.swt.internal.widgets.tableitemkit.TableItemLCA.w riteFocused(TableItemLCA.java:171)
> at
> org.eclipse.swt.internal.widgets.tableitemkit.TableItemLCA.r enderChanges(TableItemLCA.java:89)
> at
> org.eclipse.swt.lifecycle.AbstractWidgetLCA.render(AbstractW idgetLCA.java:55)
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$Rende rVisitor.render(DisplayLCA.java:63)
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$Rende rVisitor.doVisit(DisplayLCA.java:47)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidget TreeVisitor.visit(WidgetTreeVisitor.java:25)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:56)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleIte ms(WidgetTreeVisitor.java:88)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:45)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
> at
> org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:48)
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.rende r(DisplayLCA.java:133)
> at org.eclipse.swt.internal.lifecycle.Render.execute(Render.jav a:28)
> at
> org.eclipse.swt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:81)
>
> Any ideas ?
>
> Thanks,
> Thomas
>
>
Re: Again Table Refresh Error [message #32735 is a reply to message #32284] Tue, 12 June 2007 15:17 Go to previous message
Thomas Kühne is currently offline Thomas KühneFriend
Messages: 33
Registered: July 2009
Member
Hi R
Previous Topic:JavaScript Error using todays cvs update
Next Topic:Canvas Support in Rap
Goto Forum:
  


Current Time: Sat Nov 22 03:19:51 GMT 2014

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

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