Change to EditorŽs view [message #169909] |
Thu, 07 September 2006 11:09 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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) {
}
|
|
|
Powered by
FUDForum. Page generated in 0.06810 seconds