editor preferences [message #23807] |
Wed, 30 April 2003 10:16  |
Eclipse User |
|
|
|
Originally posted by: christian.sell.netcologne.de
Hello,
I have implemented an XML-based editor as part of my plugin, for editing
plugin-specific files. Most of the code for the editor stems from the
example code generated by PDE, and the Ant editor that comes with
eclipse. So far so nice.
Moving on to implement the preference page for the editor, and looking
at the Ant editor, I see pages-full of code that was obviously copied
from org.eclipse.ui.internal.editors.text.
Now I see myself faced with the option to create yet another copy -
which makes me shudder. In any case, I would like to understand a little
bit of the code I am copying.
Questions:
1. Is this copying business the right way to go? Shouldnt the fact that
eclipse plugins themselves do this be an incentive to open up the API?
2. can anybody enlighten me on the purpose of OverlayPreferenceStore
(either the externaltools.internal one or the internal.editors one)?
thanks
Christian
|
|
|
Re: editor preferences [message #24248 is a reply to message #23807] |
Wed, 30 April 2003 11:33  |
Eclipse User |
|
|
|
Originally posted by: simon.ibm.oti.lab
If you see code being duplicated in more than one spot and find the need to
duplicate again for your own needs, please open a bug report for the plugin
providing the original code. We can look to see if there is a possible to
make it public.
Simon :-)
"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:b8ols1$2qm$1@rogue.oti.com...
> Hello,
>
> I have implemented an XML-based editor as part of my plugin, for editing
> plugin-specific files. Most of the code for the editor stems from the
> example code generated by PDE, and the Ant editor that comes with
> eclipse. So far so nice.
>
> Moving on to implement the preference page for the editor, and looking
> at the Ant editor, I see pages-full of code that was obviously copied
> from org.eclipse.ui.internal.editors.text.
> Now I see myself faced with the option to create yet another copy -
> which makes me shudder. In any case, I would like to understand a little
> bit of the code I am copying.
>
> Questions:
>
> 1. Is this copying business the right way to go? Shouldnt the fact that
> eclipse plugins themselves do this be an incentive to open up the API?
>
> 2. can anybody enlighten me on the purpose of OverlayPreferenceStore
> (either the externaltools.internal one or the internal.editors one)?
>
> thanks
> Christian
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03430 seconds