|Re: selectionChanged event not triggered after opening EditPart from TreeView [message #1710117 is a reply to message #1709861]
||Sun, 04 October 2015 15:10
| yev xxxxx
Registered: July 2014
I believe the problem is that the SelectionSrvice(active part) is moved to editor and not staying in the viewpart.|
I tried to set focus back to view part after opening the editor, but it didn't help.
The only workaroung that I could think of was obtain the selection of the viewpart (tree) directly , and I do it in run() method above.
IViewPart part =workbenchWindow.getActivePage().findView("viewID");
ISelection theSelection = part.getSite().getSelectionProvider().getSelection();
But I don't like such approach.
[Updated on: Sun, 04 October 2015 21:57]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01801 seconds