Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » changing background color on a table viewer depending on other view selection
changing background color on a table viewer depending on other view selection [message #636672] Tue, 02 November 2010 12:44 Go to next message
Luca Ferrari is currently offline Luca FerrariFriend
Messages: 159
Registered: November 2009
Senior Member
Hi,
in my application I've got a couple of views that are connected together (one is a producer and one is a consumer). Everything works fine, but I'd like to change the background color of some rows of the detail view depending on the selection of the master view. I know how to change background in the label provider, but I don't know how to emit a "refresh" of the detail view without changing its content. Any help will be appreciated.

Thanks
Re: changing background color on a table viewer depending on other view selection [message #636881 is a reply to message #636672] Wed, 03 November 2010 08:28 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 02/11/10 6:14 PM, Luca Ferrari wrote:
> Hi,
> in my application I've got a couple of views that are connected together
> (one is a producer and one is a consumer). Everything works fine, but
> I'd like to change the background color of some rows of the detail view
> depending on the selection of the master view. I know how to change
> background in the label provider, but I don't know how to emit a
> "refresh" of the detail view without changing its content. Any help will
> be appreciated.
>
> Thanks

Does calling update() on the specific element work?

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: changing background color on a table viewer depending on other view selection [message #637177 is a reply to message #636881] Thu, 04 November 2010 13:24 Go to previous message
Luca Ferrari is currently offline Luca FerrariFriend
Messages: 159
Registered: November 2009
Senior Member
Good point!
Actually calling refresh on the viewer does what I was looking for.
Thanks.
Previous Topic:Radio button in a table
Next Topic:Extra row and column in a SWT Table
Goto Forum:
  


Current Time: Thu Sep 19 15:10:20 GMT 2019

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

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

Back to the top