Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Can ESelectionService propagate selection to 3.x legacy views?

On Fri, Mar 16, 2012 at 10:05 AM, Fredrik Attebrant <fredrik.attebrant@xxxxxxxxxxx> wrote:
> Some trials shows that a "pure 4.x" part can detect selection changes in a
> 3.x part.
> However, when applying a change of selection from a "pure 4.x" view, I fail
> to detect it in a 3.x view.
> Thus, does the ESelectionService trigger changes in the "legacy selection"
> framework?

This is not possible. Consider 3.x's ISelectionListener interface.

--- public void selectionChanged(IWorkbenchPart part, ISelection selection);

In 4.x, the backing objects are not implementations of IWorkbenchPart so this wouldn't work (unless we sent in null).

Does this make sense, Fredrik?


Remy Suen
Eclipse Platform/UI Committer
IBM Ottawa

Back to the top