In my RCP application, I created multiple WorkbenchWindow. Once multiple windows are opened, I would like to bring one of them on top programmatically. In my code, I can find out "theWindow
" (type of IWorkbenchWindow
) that I want to do that, but I'm not sure how to bring it to top (set it active?)
Thanks to Rambler for the hint of forceFocus(), the actual function that does the trick is:
theWindow.getShell().forceActive();