Programatically finding selected editor's ID [message #464571] |
Fri, 09 March 2007 07:59  |
Eclipse User |
|
|
|
I have multiple editors for a particular contentType, one being the default.
For the remaining I have a 'launcher' class. All the remaining editors use
very similar code, except for 1 argument.
So I want to use the same class for all editors instead of having multiple
classes.
How can I find out the editorID of the selected editor?
Based on that, I can execute the required code.
org.eclipse.ui.IEditorRegistry has a couple of methods to get the default
editor, all editors, etc.
I couldn't find a method to get the selected editor.
TIA!
Delicia.
|
|
|
Re: Programatically finding selected editor's ID [message #464599 is a reply to message #464571] |
Mon, 12 March 2007 09:40  |
Eclipse User |
|
|
|
Delicia wrote:
>I have multiple editors for a particular contentType, one being the default.
>For the remaining I have a 'launcher' class. All the remaining editors use
>very similar code, except for 1 argument.
>So I want to use the same class for all editors instead of having multiple
>classes.
>
>How can I find out the editorID of the selected editor?
>Based on that, I can execute the required code.
>
>org.eclipse.ui.IEditorRegistry has a couple of methods to get the default
>editor, all editors, etc.
>I couldn't find a method to get the selected editor.
>
>
getEditorSite().getId()
Dani
>TIA!
>Delicia.
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03151 seconds