Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » editor preferences
editor preferences [message #23807] Wed, 30 April 2003 10:16 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
>
>
Previous Topic:"Fast View" setting of the "TaskView" view in eclipse 2.1
Next Topic:[ANN] Eclipse profiler plugin, 0.5.18
Goto Forum:
  


Current Time: Sat May 10 07:08:12 EDT 2025

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

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

Back to the top