Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] DirectMenuItem and HandledMenuItem with style CHECK or RADIO

We don't want to instantiate anything (and possibly start a number of bundles) just to synchronize states.  ToggleState from 3.x serves that purpose, to save the state so that on restart it can be set correctly.

In Eclipse4, the same pattern would be that the HandledContributionItem keeps a persistedState key up to date in the model, and as part of a HCI creation it reads that state.

Although that begs the question, if the model item is "selected" are we just not setting the checked state on startup.

I'd also suggest you open a bug, these kinds of discussions should happen there.

Later,
Paul

--
Paul Webster
Hi floor.  Make me a sammich! - GIR

Back to the top