[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: ISelectionListener not being called on selection change

It's a strange one, but I figured it out. It was something to do with which view was active/focused.

When changing selection in a view (single click) I was launching the editor, like so:

IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchPage activePage =
	workbench.getActiveWorkbenchWindow().getActivePage();
activePage.openEditor(
	IEditorInput input, String editorID, boolean activate);

I was inputting "true" for activate and this was disabling the selection listener in my tree view. Using "false" fixed the issue.

Paul Webster wrote:
There was a bug fixed recently in 3.3 that effected virtual trees, are you using them?

If not write your small test into a view plugin, open a bug against Eclipse Platform UI, and attach the test plugin.

https://bugs.eclipse.org/bugs/


Later, PW