Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP Table Update problem
RAP Table Update problem [message #5897] Tue, 13 March 2007 12:15 Go to next message
Thomas Kühne is currently offline Thomas KühneFriend
Messages: 33
Registered: July 2009
Member
Hi,

first I like to say that RAP is a realy a cool project!

I installed the M2 release in Eclipse to play around a little bit with RAP.
I modified the DemoTableViewPart to fetch data via a SOAP Request. That
works
fine but I can't refresh the table after the Request. I used the eclipse
debugger to inspect the contents of the underlaying table data model. The
data changed after the SOAP request but the view does not refresh. I tried

viewer.setInput(this);
viewer.refresh(this);

I must say that I am not that familar with RWT/SWT.

Any hint would be appreciated.

Best Regards,
Thomas
Re: RAP Table Update problem [message #5949 is a reply to message #5897] Tue, 13 March 2007 18:29 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Hi Thomas,

unfortunately, the current Table implementation is very limited. We are
in the process of re-implementing it.
In the meanwhile the only way to refresh a table is to recreate it. In
Your case that would mean to also recreate the TableViewer.

Cheers
Rüdiger


Thomas Kühne wrote:
> Hi,
>
> first I like to say that RAP is a realy a cool project!
>
> I installed the M2 release in Eclipse to play around a little bit with RAP.
> I modified the DemoTableViewPart to fetch data via a SOAP Request. That
> works
> fine but I can't refresh the table after the Request. I used the eclipse
> debugger to inspect the contents of the underlaying table data model. The
> data changed after the SOAP request but the view does not refresh. I tried
>
> viewer.setInput(this);
> viewer.refresh(this);
>
> I must say that I am not that familar with RWT/SWT.
>
> Any hint would be appreciated.
>
> Best Regards,
> Thomas
>
>
Re: RAP Table Update problem [message #5966 is a reply to message #5897] Tue, 13 March 2007 18:31 Go to previous message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Hi Thomas,

This is a known bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=175651

We are currently working on a new table (client side and
LifeCycleAdapter) that will solve the problem, this is one of the main
working areas for M3.

As a (quite ugly) workaround: delete and recreate the table when the
data has been changed:

if( viewer != null ) {
IContentProvider oldProvider = viewer.getContentProvider();
if( oldProvider != null ) {
oldProvider.dispose();
}
viewer.getTable().dispose();
}
viewer = new TableViewer( parent );
viewer.setContentProvider( new ViewContentProvider( id ) );
viewer.setLabelProvider( new ViewLabelProvider() );

Best Regards,

Jochen


Thomas Kühne wrote:
> Hi,
>
> first I like to say that RAP is a realy a cool project!
>
> I installed the M2 release in Eclipse to play around a little bit with RAP.
> I modified the DemoTableViewPart to fetch data via a SOAP Request. That
> works
> fine but I can't refresh the table after the Request. I used the eclipse
> debugger to inspect the contents of the underlaying table data model. The
> data changed after the SOAP request but the view does not refresh. I tried
>
> viewer.setInput(this);
> viewer.refresh(this);
>
> I must say that I am not that familar with RWT/SWT.
>
> Any hint would be appreciated.
>
> Best Regards,
> Thomas
>
>
Previous Topic:Problem accessing RAP demo
Next Topic:Changing the RAP Startup Page
Goto Forum:
  


Current Time: Sun Oct 06 07:04:26 GMT 2024

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

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

Back to the top