views:

29

answers:

0

Hi there,

I am writing an Eclipse GUI to consume a data-feed which is unknown at compile-time. The configuration for consuming the feed will be passed to the ViewPart subclass at construction-time and displayed in a TableViewer contained withing a stacked-tab view.

I would like to update the text value contained in the CTabItem displayed in the CTabFolder containing (eventually) the Composite parent and TableViewer. I have to do a fairly dirty recursive upwards search through the parent hierarchy to find the CTabFolder, so any suggestions there would be appreciated.

I have reviewed the suggestion in this post but the item.getParent().layout(true,true) approach does not work. I should probably add I'm running on RedHat/x86_64.

Having found the CTabItem which seems to represent what I can see on the screen, I use CTabItem.setText("new value etc") to update the value. The method in CTabItem looks like it should fire an update to the display, but the value remains unchanged on screen.

Can anyone advise on additional steps I need to take or indeed the "right" way to do this?

Regards,

Michael