Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Restoring saved values for custom widgets in JAXB ETFw

> One thing I'm trying to get working in the JAXB TAU Implementation
> is initializing the makefile combo box / custom widget with the
> previously selected TAU Makefile. Currently it just selects item-
> zero when it is initialized. I don't see anything in the custom
> widget API that would be used to restore the value previously saved
> in the launch configuration. Any idea what part of the API I need to
> grab to make this happen?


See the ComboUpdateModel class and specifically its refreshValueFromMap method. This method is called by AbstractUpdateModel's initialize method to prepare the combo for display. This method calls the WidgetActionUtils.select passing it the combo and the text string of the item to be selected. I too have a combo box / custom widget which was modeled using the ComboUpdateModel and WidgetActionUtils classes and it restores the value previously save in the launch configuration and selects the previously selected item.

Bri


Back to the top