Opening a file in visual editor programatically [message #122718] |
Thu, 27 November 2003 10:11  |
Eclipse User |
|
|
|
Originally posted by: javibasi.yahoo.es
Hi
I've developed, as a part of one plugin, a wizard for Java classes. After
the class is created, I want to get it opened in a the visual Java Editor.
As it's a .java file, the default editor is the text Java Editor, and I
don`t want to change this default options.
Searching the APIs and newsgroups, I found the method
IWorkbenchPAge.openEditor(IFile input, String editorID).
My question is about where I can find the editorID corresponding to the
Visual Editor for Java.
Thank you very much.
Dian Cecht
|
|
|
|
|
|
Re: Opening a file in visual editor programatically [message #124028 is a reply to message #123927] |
Wed, 03 December 2003 05:48  |
Eclipse User |
|
|
|
Originally posted by: javibasi.yahoo.es
Thanks again for your reply, Rich.
I finally found a way to identify visual java files, but still couldn't
manage to open the visual editor. What I finally did is setting the visual
editor as default, so when I call the open method, I get the .java file
I've created visually edited.
I know it's not the best solution, but it's the only one I've found.
Anyway, I think there should be a way to programatically invoking an
editor based on public identifiers for each editor.
Thanks again.
Dian Cecht
Rich Kulp wrote:
> There is no kindof. Any java file at all can be opened in either the
> default java editor or the visual editor.
|
|
|
Powered by
FUDForum. Page generated in 0.05337 seconds