Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Open Editor from within a Wizard?
icon5.gif  Open Editor from within a Wizard? [message #873047] Thu, 17 May 2012 12:01
Florian Weidemann is currently offline Florian WeidemannFriend
Messages: 4
Registered: December 2009
Junior Member
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

Previous Topic:DROP_DOWN_MENU not always displaying menu
Next Topic:How to get rid of "orphan perspectives"?
Goto Forum:
  


Current Time: Fri Sep 20 14:55:22 GMT 2024

Powered by FUDForum. Page generated in 0.02166 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top