Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Change to EditorŽs view
Change to EditorŽs view [message #169909] Thu, 07 September 2006 11:09 Go to next message
Eclipse UserFriend
Originally posted by: francuesta.gmail.com

Hello, I would want to know how can change to editorŽs view. IŽm
developping a wizard that create a file and I would like that when the
wizard finish, the editorŽs view show me the file like "new class wizard".

Thank you so much!!!
Re: Change to EditorŽs view [message #170258 is a reply to message #169909] Sun, 10 September 2006 23:05 Go to previous message
Eclipse UserFriend
Originally posted by: stefan.teitge.web.de

Fran wrote:
> Hello, I would want to know how can change to editorŽs view. IŽm
> developping a wizard that create a file and I would like that when the
> wizard finish, the editorŽs view show me the file like "new class wizard".
>
> Thank you so much!!!
>


The snippet below included in your wizards performFinish() method will help.

API doc can be found here
http://help.eclipse.org/help32/nftopic/org.eclipse.platform. doc.isv/reference/api/overview-summary.html

CODE ------>

// Open editor on new file.
IWorkbenchWindow dw = workbench.getActiveWorkbenchWindow();
try {
if (dw != null) {
IWorkbenchPage page = dw.getActivePage();
if (page != null) {
IDE.openEditor(page, file, true);
}
}
} catch (PartInitException e) {

}
Previous Topic:Package selection
Next Topic:Help: Eclipse & EMF as UML modelling tool
Goto Forum:
  


Current Time: Fri Dec 27 02:14:21 GMT 2024

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

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

Back to the top