Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Master/slave problem
Master/slave problem [message #755279] Mon, 07 November 2011 22:06 Go to next message
Catalin Gerea is currently offline Catalin GereaFriend
Messages: 89
Registered: July 2009
Location: Bucharest, Romania
Member

I have view A with a tree viewer and view B with a table viewer.
The tree viewer has 2 levels; on the second levels it list the children(s) on first level. In the same time when a entry of first level is selected in the tree viewer the table viewer from view B is populated with entries. This works correctly so far.

Problem:
When I added support in table viewer for editing support, allowing the user to change the table values I do not see the tree viewer automatically updated.

Question(s):
1. Is there an automated mechanism to signal back to the tree viewer that it needs to be refreshed/updated?


Time is what you make of it.
Re: Master/slave problem [message #755397 is a reply to message #755279] Tue, 08 November 2011 10:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Am 07.11.11 23:06, schrieb Catalin Gerea:
> I have view A with a tree viewer and view B with a table viewer.
> The tree viewer has 2 levels; on the second levels it list the
> children(s) on first level. In the same time when a entry of first level
> is selected in the tree viewer the table viewer from view B is populated
> with entries. This works correctly so far.
>
> Problem:
> When I added support in table viewer for editing support, allowing the
> user to change the table values I do not see the tree viewer
> automatically updated.
>
> Question(s):
> 1. Is there an automated mechanism to signal back to the tree viewer
> that it needs to be refreshed/updated?

See my answer to your other question. You have to call viewer.update(o,null)

The other option is to use Eclipse Databindings Viewer Support.

Tom
Re: Master/slave problem [message #755582 is a reply to message #755397] Tue, 08 November 2011 21:01 Go to previous messageGo to next message
Catalin Gerea is currently offline Catalin GereaFriend
Messages: 89
Registered: July 2009
Location: Bucharest, Romania
Member

Hello Tom

I have 2 viewers in 2 separate views. In my EditingSupport setValue() method I do call viewer.update(o, null);, but this has effect only on the second view (the details view). The first view (the master view) is not refreshed at all.

As far as I saw Eclipse Databindings Viewer Support is effective only when a single view is involved and not two views. Do you have some kind of snippet for this case?


Time is what you make of it.
Re: Master/slave problem [message #755633 is a reply to message #755582] Wed, 09 November 2011 07:21 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
No when using SWT-Databinding and both Views show the same underlying
Object they would be updated both!

Tom

Am 08.11.11 22:01, schrieb Catalin Gerea:
> Hello Tom
>
> I have 2 viewers in 2 separate views. In my EditingSupport setValue()
> method I do call viewer.update(o, null);, but this has effect only on
> the second view (the details view). The first view (the master view) is
> not refreshed at all.
>
> As far as I saw Eclipse Databindings Viewer Support is effective only
> when a single view is involved and not two views. Do you have some kind
> of snippet for this case?
Previous Topic:Viewer with editing support and properties view
Next Topic:What is the preferred way to to addHelpListener in a FormEditor?
Goto Forum:
  


Current Time: Tue Apr 16 09:42:26 GMT 2024

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

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

Back to the top