Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Extend/use editor in custom plugin (XMLMultiPageEditorPart)
Extend/use editor in custom plugin (XMLMultiPageEditorPart) [message #185561] Thu, 04 January 2007 14:05 Go to next message
Eclipse User
Originally posted by: durchgedreht.gmx.de

*****************
FIRST OF ALL:

I know this is WTP internal and may not be future compliant. Anybody
reading this should be aware of this (if an extension point will help me,
any idea is also welcome).
*****************

Hi,

I want to use the XML editor of the WTP package. The problem I have: I use
an own file extension. That file extension has a MultiPartEditor attached
as I want to deliver a GUI based editor for the user. As I use XML I also
want to have a tab in the MultiPageEditor to allow XML Source Code
modification. How can I Use the existiong editor
" org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part " ???

Aim:
1. Page: My visual editor
2. Page: eclipse wtp XML visual editor
3. Page: eclipse wtp XML source editor

I got it running with an own editor definition and class. My class
inherits from XMLMultiPageEditor and therefore has the Functionality I
want. But this should not be done as it throws a warning (Discuraged
Access due to restriction). So how do I solve this without workarounds?

THX!
Dennis
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
Re: Extend/use editor in custom plugin (XMLMultiPageEditorPart) [message #185581 is a reply to message #185561] Thu, 04 January 2007 14:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: b.muskalla.gmx.net

Hi Dennis,

this could help you:

http://www.eclipse.org/webtools/wst/components/sse/tutorials /multipage-editor-tutorial.html

Greets
Benny


Dennis Meyer wrote:
> *****************
> FIRST OF ALL:
>
> I know this is WTP internal and may not be future compliant. Anybody
> reading this should be aware of this (if an extension point will help
> me, any idea is also welcome).
> *****************
>
> Hi,
>
> I want to use the XML editor of the WTP package. The problem I have: I use
> an own file extension. That file extension has a MultiPartEditor attached
> as I want to deliver a GUI based editor for the user. As I use XML I also
> want to have a tab in the MultiPageEditor to allow XML Source Code
> modification. How can I Use the existiong editor
> " org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part " ???
>
> Aim:
> 1. Page: My visual editor
> 2. Page: eclipse wtp XML visual editor
> 3. Page: eclipse wtp XML source editor
>
> I got it running with an own editor definition and class. My class
> inherits from XMLMultiPageEditor and therefore has the Functionality I
> want. But this should not be done as it throws a warning (Discuraged
> Access due to restriction). So how do I solve this without workarounds?
>
> THX!
> Dennis
> --Erstellt mit Operas revolutionärem E-Mail-Modul:
> http://www.opera.com/mail/
Re: Extend/use editor in custom plugin (XMLMultiPageEditorPart) [message #185623 is a reply to message #185581] Fri, 05 January 2007 04:18 Go to previous messageGo to next message
Eclipse User
Originally posted by: durchgedreht.gmx.de

Thanks, this was EXACTLY what I was looking for!

Anyway, I have troubles in getting the "right" XML editor. When I ollow
the tutorial step by step, ll works fine. But when I test the plugin and
open a XML file, the text will not be highlighted and no CTRL-Space help
is active. When I right click the editor pane and choose preferences, I
will get the TextEditor.
When right-clicking the XML file I can choose the different editors
(MyTutorialEditor and XMLEditor) and the XML Editor will show the WTP XML
Editor with all features enabled, so it is installed. Any ideas what went
wrong?

Thanks,
Dennis



Am 04.01.2007, 20:35 Uhr, schrieb Benjamin Muskalla <b.muskalla@gmx.net>:

> Hi Dennis,
>
> this could help you:
>
> http://www.eclipse.org/webtools/wst/components/sse/tutorials /multipage-editor-tutorial.html
>
> Greets
> Benny
>
>
> Dennis Meyer wrote:
>> *****************
>> FIRST OF ALL:
>> I know this is WTP internal and may not be future compliant. Anybody
>> reading this should be aware of this (if an extension point will help
>> me, any idea is also welcome).
>> *****************
>> Hi,
>> I want to use the XML editor of the WTP package. The problem I have:
>> I use
>> an own file extension. That file extension has a MultiPartEditor
>> attached
>> as I want to deliver a GUI based editor for the user. As I use XML I
>> also
>> want to have a tab in the MultiPageEditor to allow XML Source Code
>> modification. How can I Use the existiong editor
>> " org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part " ???
>> Aim:
>> 1. Page: My visual editor
>> 2. Page: eclipse wtp XML visual editor
>> 3. Page: eclipse wtp XML source editor
>> I got it running with an own editor definition and class. My class
>> inherits from XMLMultiPageEditor and therefore has the Functionality I
>> want. But this should not be done as it throws a warning (Discuraged
>> Access due to restriction). So how do I solve this without workarounds?
>> THX!
>> Dennis
>> --Erstellt mit Operas revolutionärem E-Mail-Modul:
>> http://www.opera.com/mail/



--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
Re: Extend/use editor in custom plugin (XMLMultiPageEditorPart) - SOLVED [message #185639 is a reply to message #185623] Fri, 05 January 2007 05:55 Go to previous message
Eclipse User
Originally posted by: durchgedreht.gmx.de

Hi,

it seems like I've been sleeping while reading <SHAME on me!>
I simply forgot to change TextEditor to StructuredTextEditor.

Tanks a lot for your help!
Dennis

Am 05.01.2007, 10:18 Uhr, schrieb Dennis Meyer <durchgedreht@gmx.de>:

> Thanks, this was EXACTLY what I was looking for!
>
> Anyway, I have troubles in getting the "right" XML editor. When I
> ollow the tutorial step by step, ll works fine. But when I test the
> plugin and open a XML file, the text will not be highlighted and no
> CTRL-Space help is active. When I right click the editor pane and choose
> preferences, I will get the TextEditor.
> When right-clicking the XML file I can choose the different editors
> (MyTutorialEditor and XMLEditor) and the XML Editor will show the WTP
> XML Editor with all features enabled, so it is installed. Any ideas what
> went wrong?
>
> Thanks,
> Dennis
>
>
>
> Am 04.01.2007, 20:35 Uhr, schrieb Benjamin Muskalla <b.muskalla@gmx.net>:
>
>> Hi Dennis,
>>
>> this could help you:
>>
>> http://www.eclipse.org/webtools/wst/components/sse/tutorials /multipage-editor-tutorial.html
>>
>> Greets
>> Benny
>>
>>
>> Dennis Meyer wrote:
>>> *****************
>>> FIRST OF ALL:
>>> I know this is WTP internal and may not be future compliant. Anybody
>>> reading this should be aware of this (if an extension point will help
>>> me, any idea is also welcome).
>>> *****************
>>> Hi,
>>> I want to use the XML editor of the WTP package. The problem I have:
>>> I use
>>> an own file extension. That file extension has a MultiPartEditor
>>> attached
>>> as I want to deliver a GUI based editor for the user. As I use XML I
>>> also
>>> want to have a tab in the MultiPageEditor to allow XML Source Code
>>> modification. How can I Use the existiong editor
>>> " org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part " ???
>>> Aim:
>>> 1. Page: My visual editor
>>> 2. Page: eclipse wtp XML visual editor
>>> 3. Page: eclipse wtp XML source editor
>>> I got it running with an own editor definition and class. My class
>>> inherits from XMLMultiPageEditor and therefore has the Functionality I
>>> want. But this should not be done as it throws a warning (Discuraged
>>> Access due to restriction). So how do I solve this without
>>> workarounds?
>>> THX!
>>> Dennis
>>> --Erstellt mit Operas revolutionärem E-Mail-Modul:
>>> http://www.opera.com/mail/
>
>
>



--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
Previous Topic:Debug Code
Next Topic:XML File Validation Using NameSpace
Goto Forum:
  


Current Time: Fri Apr 18 06:48:04 EDT 2014

Powered by FUDForum. Page generated in 0.01581 seconds