Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Rebroadcast selection after TableViewer row changed(TableViewer selection after selection)
Rebroadcast selection after TableViewer row changed [message #742524] Thu, 20 October 2011 15:15
Richard Koop is currently offline Richard KoopFriend
Messages: 15
Registered: July 2009
Junior Member
I have a TableViewer widget in my RCP app. A background thread changes the content of a row (eg. a search changes from Running to Completed). I have various toolbar option enabled based on a property tester on this value. Is there a way to rebroadcast the current selection so that available toolbar options are correct? Only way I found to do this was to submit a null selection and the set the selection again.

ie.
ISelection selection = tableViewer.getSelection();
tableViewer.setSelection(null);
tableViewer.setSelection(selection);

This works perfect but seems like a hack.
Previous Topic:Table cell background overlaps with the grid lines
Next Topic:How to assign help context id to HelpView?
Goto Forum:
  


Current Time: Thu Nov 27 18:48:32 GMT 2014

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

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