Hello,
in the RCP Application I'm developing I'm using a Wizard to display the results of a database validation. I now want the user to be able to click on an invalid document and open it in an editor in a new shell, without closing the wizard.
I create the shell as a child of the wizards shell:
shell = new Shell(wizard.getContainer().getShell());
Otherwise the shell will not be able to get focus. The problem Im having is that I'm unable to find the correct WorkbenchWindow and WorkbenchPage to call the openEditor Method from.
PlatformUI.getWorkbench().getActiveWorkbenchWindow();
does not return the correct Window. I also tried all Windows I get with
PlatformUI.getWorkbench().getWorkbenchWindows();
without success.
Any help would be greatly appreciated.
[Updated on: Thu, 17 May 2012 12:02]
Report message to a moderator