Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Table Refresh Error
Table Refresh Error [message #22828] Mon, 07 May 2007 22:09 Go to next message
Thomas Kühne is currently offline Thomas KühneFriend
Messages: 33
Registered: July 2009
Member
Hi,

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

viewer.refresh();

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:

org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:146)
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:122)
at
org.eclipse.jface.viewers.StructuredViewer.disassociate(Stru cturedViewer.java:563)
at
org.eclipse.jface.viewers.TableViewer.internalRefreshAll(Tab leViewer.java:884)
at
org.eclipse.jface.viewers.TableViewer.internalRefresh(TableV iewer.java:799)
at
org.eclipse.jface.viewers.TableViewer.internalRefresh(TableV iewer.java:783)
at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:1328)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1268)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1325)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1287)
at
de.todo.bpm.client.view.SearchViewBase$1.modifyText(SearchVi ewBase.java:84)

this does not happen when I dispose the table in the viewer and recreate
it.

Any ideas ?

Thanks,
Thomas
Re: Table Refresh Error [message #22872 is a reply to message #22828] Mon, 07 May 2007 23:44 Go to previous messageGo to next message
Thomas Kühne is currently offline Thomas KühneFriend
Messages: 33
Registered: July 2009
Member
Hi,

i solved the problem myself :-)

just added

viewer.getTable().removeAll();

befored refresh.

Thanks for attention,

thomas

"Thomas K
Re: Table Refresh Error [message #25695 is a reply to message #22872] Fri, 18 May 2007 06:17 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Thomas,

removeAll() is a workaround, however, refresh() should work, in my opinion.
I created a bugreport https://bugs.eclipse.org/bugs/show_bug.cgi?id=187272

Greetings,
Stefan.


"Thomas K
Previous Topic:File Uploader Widget
Next Topic:Unsupported event handler
Goto Forum:
  


Current Time: Mon Jan 13 20:53:45 GMT 2025

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

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

Back to the top