How to use MultiPageEditor for .java extension [message #190720] |
Tue, 30 January 2007 08:52 |
Eclipse User |
|
|
|
Originally posted by: jokke.hive.no
I have been trying to figure out how to use MultiPageEditor functionality in
my plugin.
My problem is that i want the editor to open on java files, somehow the
files seem to be locked by Eclipse.
Cause if i set the plugin to react on any other file extension the editor
opens up.
I have read around and all the examples i have found takes a basis in the
fact that you use your own created file extensions.
Also the two books iv read, O'Reilly's book about eclipse and Contributing
to Eclipse by Kent Beck & Erich Gamma,
does not give me much answers about the issue.
If anyone have had the same problem and know some good resources that i
could read?
Or have an answer to my problem, i would be most grateful.
rgds
Joakim A. Neslow
|
|
|
|
|
Re: How to use MultiPageEditor for .java extension [message #190808 is a reply to message #190766] |
Tue, 30 January 2007 15:52 |
Eclipse User |
|
|
|
Originally posted by: jokke.hive.no
> This should work by contributing your editor via "org.eclipse.ui.editors"
> extension point either with extensions="java" or
> <contentTypeBinding contentTypeId="org.eclipse.jdt.core.javaSource"/>.
> Your editor will then be available in the Open With section and users can
> choose your editor as default via General > Editors > File Associations
> preference page.
>
> Dani
Thank you for the reply, it helped :)
I didnt think i had to change the default editor when i did not have to do
so when i created my own extensions.
rgds
Joakim Andre Neslow
|
|
|
Powered by
FUDForum. Page generated in 0.07838 seconds