Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » NatTable is not refreshed correctly
NatTable is not refreshed correctly [message #989532] Thu, 06 December 2012 16:26 Go to next message
Clemens Bartz is currently offline Clemens BartzFriend
Messages: 5
Registered: December 2012
Junior Member
Hello,

I am currently developing an Eclipse RCP application. I have two parts side by side. Both of them feature a NatTable. When I select a cell in on table and click a button, I add a label to that cell. The change is immediately displayed in the table by calling a StructuralRefreshCommand. I have now connected the second table to the first, i. e. when I click the button in one part, both tables should do a StructuralRefreshCommand. Both commands are executed. However, I have to click in the non-active table for the changes to be visible. Under some circumstances I do not need to click into the second table. Are there any other ways of refreshing the table?

For the record: I have also connected both scrollbars. These changes are working either way and are visible immediately.

Kind regards,
Clemens
Re: NatTable is not refreshed correctly [message #989648 is a reply to message #989532] Fri, 07 December 2012 08:03 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Refreshing a NatTable is done the way you describe it. There is a convenience method NatTable.refresh() that does exactly the same. I'm not sure if this is related to some Eclipse focus stuff. Maybe the refresh() to one of the tables is not executed because the part doesn't have the focus. Are you developing a Eclipse 3.x or Eclipse 4 based application. If it is Eclipse 4, did you implement a method annotated with @Focus in every part? There might be strange behaviour in Eclipse 4 if this is not done as described here http://www.vogella.com/articles/EclipseRCP/article.html#programmingmodel_annotation.
Re: NatTable is not refreshed correctly [message #989715 is a reply to message #989532] Fri, 07 December 2012 11:49 Go to previous message
Clemens Bartz is currently offline Clemens BartzFriend
Messages: 5
Registered: December 2012
Junior Member
Hi Dirk,

Thank you for your quick help. I was able to fix another bug with your help. My original problem, however, still exists. I have examined the issue a bit deeper. The issue seems to be caused by a faulty SelectionService. I will dig deeper into this one.
Sorry for the hassle.

Kind regards,
Clemens
Previous Topic:Weird issue with FilterRow and Scrollbars
Next Topic:How to change the font?
Goto Forum:
  


Current Time: Fri Apr 19 23:28:21 GMT 2024

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

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

Back to the top