Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Question about StructuredTextEditor.createCombinedPreferenceStore?
Question about StructuredTextEditor.createCombinedPreferenceStore? [message #136241] Thu, 01 September 2005 08:16 Go to next message
Eclipse UserFriend
Hi all,

Why StructuredTextEditor.createCombinedPreferenceStore is private?
and isFoldingEnabled is private too?, that means if in my plugins has
an editor extends StructuredTextEditor, and want to enable folding
support, the only way is to use SSEUIPlugin PreferenceStore, and that
affact all editor extends from StructuredTextEditor, this kind design
is really weird. is there any other ways?

Regards

Eric
Re: Question about StructuredTextEditor.createCombinedPreferenceStore? [message #136264 is a reply to message #136241] Thu, 01 September 2005 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

Hi Eric,
StructuredTextEditor is actually intended not to be subclassed. That's
why createCombinedPreferenceStore and isFoldingEnabled are also private. I
don't think there is really a simple way to get around it apart from
creating and adding in your own folding infrastructure in the same places
it's already being added in StructuredTextEditor.


"Eric Suen" <eric_suen_cn@hotmail.com> wrote in message
news:df6rb0$4mg$1@news.eclipse.org...
> Hi all,
>
> Why StructuredTextEditor.createCombinedPreferenceStore is private?
> and isFoldingEnabled is private too?, that means if in my plugins has
> an editor extends StructuredTextEditor, and want to enable folding
> support, the only way is to use SSEUIPlugin PreferenceStore, and that
> affact all editor extends from StructuredTextEditor, this kind design
> is really weird. is there any other ways?
>
> Regards
>
> Eric
>
>
Re: Question about StructuredTextEditor.createCombinedPreferenceStore? [message #136274 is a reply to message #136264] Thu, 01 September 2005 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Amy,

>> StructuredTextEditor is actually intended not to be subclassed.
why? losts of editor extents StructuredTextEditor, for example:
dtd & xml, if I want XML Editor enable folding, others not, seems no
way to achieve that...
Re: Question about StructuredTextEditor.createCombinedPreferenceStore? [message #136660 is a reply to message #136274] Mon, 05 September 2005 21:38 Go to previous messageGo to next message
Eclipse UserFriend
On Thu, 01 Sep 2005 16:31:47 -0400, Eric Suen <eric_suen_cn@hotmail.com>=
wrote:

> Hi Amy,
>
>>> StructuredTextEditor is actually intended not to be subclassed.
> why? losts of editor extents StructuredTextEditor, for example:
> dtd & xml, if I want XML Editor enable folding, others not, seems no
> way to achieve that...
>
We are working on "removing" those other subclasses you mentioned.
Our philosphy will be to provide ways to add "configuration" to
editors, but not have the Editor Class itself be subclass-supporting API=
..
(In our experience, too hard to evolve).

Of course, once we get to our "starting point" of API's we'll always con=
sider
proposals to improve in the way people want to add things.
Re: Question about StructuredTextEditor.createCombinedPreferenceStore? [message #137423 is a reply to message #136660] Thu, 08 September 2005 13:08 Go to previous message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

And to build off what David said about editor configurations and tie it to
folding. We are looking to make folding a configurable part of the editor.
Of course the first goal may be to actually get folding officially in the
source editors:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=73271

There is also a bug open to get the configurable folding to be part of the
base text editor:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=84819


"David Williams" <david_williams@us.ibm.com> wrote in message
news:op.swnqtucrac05ss@dmw2t23.raleigh.ibm.com...
On Thu, 01 Sep 2005 16:31:47 -0400, Eric Suen <eric_suen_cn@hotmail.com>
wrote:

> Hi Amy,
>
>>> StructuredTextEditor is actually intended not to be subclassed.
> why? losts of editor extents StructuredTextEditor, for example:
> dtd & xml, if I want XML Editor enable folding, others not, seems no
> way to achieve that...
>
We are working on "removing" those other subclasses you mentioned.
Our philosphy will be to provide ways to add "configuration" to
editors, but not have the Editor Class itself be subclass-supporting API.
(In our experience, too hard to evolve).

Of course, once we get to our "starting point" of API's we'll always
consider
proposals to improve in the way people want to add things.
Previous Topic:Breakpoints in JSP Using Tomcat 3.2.4
Next Topic:Review Requested: Editor contribution proposal
Goto Forum:
  


Current Time: Mon May 12 13:23:21 EDT 2025

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

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

Back to the top