Back Forum Reply New

Best practices: Holdeing selection state?

Hi,

I have several views here where beans are shown in as list. The user may select them and other views are updated accordingly.
I know that Eclipse provides some way of quot;SelectionStatequot; that is used for their outline and properties view.
Does anything like that exist within Eclipse RCP?

Thanks

Hi

No i dont think it exists is Spring RCP per default. Personally I use multiple views that need to know about selections made on a global level. I use ELF to notify when selection has changed, and therefore I have a home made selection state.

I think this is a common problem many will run into, that is to have a global selection model. If theres anyone on the Spring RCP developer list who has a suggestion how we can incorporate this into the framework it would be great?

For the time beaing Shake I think you have to create you own SelectionState and notify changes in it through either the Spring RCP Applications events or if you allready have your own event handling, though it.

Cheers, Magnus
¥
Back Forum Reply New