[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: ComboBox Editor toolbar contribution Prob lems

Thanks for the tip. In setActiveEditor I have been able to add code to get the required value from the active editor and set the selection on the combo box. I have one remaining problem however.

I am not able to set the selection when the first Editor appears, as the Control is not actually available at the time the setActiveEditor() is called at the when the editor first opens. A new editor is fine, as long as it isn't the first. That is the createControl(Composite parent) of my ControlContribution gets called after setActiveEditor(). I tried adding extra code in the createControl(Composite parent) but that also raised "Widget disposed too early!" exception.