Request to extend XMLMultiPageEditorPart [message #186745] |
Mon, 22 January 2007 18:52  |
Eclipse User |
|
|
|
Originally posted by: fakeaddress.brainkandy.org
Hi,
I'd like to make a small change to XMLMultiPageEditorPart.
Right now, the source page in an XML document stored as
private StrucutredTextEditor fTextEditor
and is initialized in protected createSourcePage():
fTextEditor = createTextEditor();
fTextEditor.setEditorPart(this);
Finally, createTextEditor() looks like this:
private StructuredTextEditor createTextEditor() {
return new StructuredTextEditor();
}
What I really really want is to make createTextEditor protected, and so
when I extend XMLMultiPageEditorPart, createTextEditor can create
something that extends StructuredTextEditor.
I know very little about a) making Eclipse contributions and b) getting
patches like this integrated into my source.
I'm also assuming this is a reasonable change.
Please advise.
Thanks, Robert
|
|
|
Re: Request to extend XMLMultiPageEditorPart [message #186811 is a reply to message #186745] |
Tue, 23 January 2007 03:02   |
Eclipse User |
|
|
|
Originally posted by: fakeaddress.brainkandy.org
Robert Konigsberg wrote:
> Hi,
>
> I'd like to make a small change to XMLMultiPageEditorPart.
>
> Right now, the source page in an XML document stored as
>
> private StrucutredTextEditor fTextEditor
>
> and is initialized in protected createSourcePage():
>
> fTextEditor = createTextEditor();
> fTextEditor.setEditorPart(this);
>
> Finally, createTextEditor() looks like this:
>
> private StructuredTextEditor createTextEditor() {
> return new StructuredTextEditor();
> }
>
> What I really really want is to make createTextEditor protected, and so
> when I extend XMLMultiPageEditorPart, createTextEditor can create
> something that extends StructuredTextEditor.
>
> I know very little about a) making Eclipse contributions and b) getting
> patches like this integrated into my source.
>
> I'm also assuming this is a reasonable change.
>
> Please advise.
>
> Thanks, Robert
Let me expand just slightly -- tell you what I'm really trying to do to
see if there's a slightly better way to do it:
My intent is to add a contribution to the status bar when viewing the
source page. That doesn't require changes to the source page, but the
event that creates the change to the status bar will come from Foo
extends StructuredSourceEditor (by overriding handleCursorPositionChanged).
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03876 seconds