Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] SelectionAggregator and initial selection behavior

On Tue, Jul 23, 2013 at 11:25 AM, Kübler, Jens <Jens.Kuebler@xxxxxxxxxx> wrote:

Spending two thoughts on this I can’t see where the benefits are. Most actions, handler and stuff react on the active part.


It's the way it is designed.  The Window selection reflects the application selection, which is the selection of the currently active part.  Any handler or action *within* a part wouldn't be looking to the window selection anyway as it can get its own selection out of the part.

All the subclasses of org.eclipse.ui.actions.BaseSelectionListenerAction can demonstrate the usefulness of this pattern, for example the RefreshAction placed in the window toolbar would be enabled when the package explorer is active (and the selection is a file or folder) but disabled when switching to an active view.

Later,
PW


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

Back to the top