Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to use MultiPageEditor for .java extension
How to use MultiPageEditor for .java extension [message #190720] Tue, 30 January 2007 08:52 Go to next message
Eclipse UserFriend
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 #190733 is a reply to message #190720] Tue, 30 January 2007 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krzysztofHMMMMdaniel.gmail.com

You are right, the .java editor is locked and you cant change it editor
without modifying sources of eclipse... AFAIK

Chris
Re: How to use MultiPageEditor for .java extension [message #190766 is a reply to message #190720] Tue, 30 January 2007 11:57 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Joakim Andre Neslow wrote:

>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.
>
>
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

>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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Eclipse does not launch browser
Next Topic:Which newsgroup to answer questions about partition types and content assist?
Goto Forum:
  


Current Time: Wed Apr 24 22:12:43 GMT 2024

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

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

Back to the top