Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How can I instantiate an instance of WebTool's XML editor?
How can I instantiate an instance of WebTool's XML editor? [message #167194] Fri, 21 April 2006 17:45 Go to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Hi,

I have a dialog with an area that I want to imbed an XML editor. Since
web tool has one, I want to embed its editor. This I can do, as long as
I know web tool's editor's main class/plugin to instantiate it.

Any tips?

Thanks!
Re: How can I instantiate an instance of WebTool's XML editor? [message #167916 is a reply to message #167194] Fri, 28 April 2006 18:55 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
AL wrote:
> Hi,
>
> I have a dialog with an area that I want to imbed an XML editor. Since
> web tool has one, I want to embed its editor. This I can do, as long as
> I know web tool's editor's main class/plugin to instantiate it.
>
> Any tips?
>
> Thanks

Programmatically, that is.
Re: How can I instantiate an instance of WebTool's XML editor? [message #169967 is a reply to message #167916] Tue, 23 May 2006 21:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHIS.ibm.com

It is generally not recommended that you directly embed editors inside
of dialogs or other controls. Instead, you should embed the editor's
SourceViewer and then add the extra actions you need.

But, if you do want to embed the editor..
XML editor, including design & source page:
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part

Just the XML source page editor:
org.eclipse.wst.sse.ui.StructuredTextEditor
and when you pass in the IEditorSite for the editor, make sure the site
you pass in has an id of ContentTypeIdForXML.ContentTypeID_XML +
".source" (see XMLMultiPageEditorPart#createSite for example)


AL wrote:
> AL wrote:
>> Hi,
>>
>> I have a dialog with an area that I want to imbed an XML editor.
>> Since web tool has one, I want to embed its editor. This I can do, as
>> long as I know web tool's editor's main class/plugin to instantiate it.
>>
>> Any tips?
>>
>> Thanks
>
> Programmatically, that is.
Re: How can I instantiate an instance of WebTool's XML editor? [message #172676 is a reply to message #169967] Wed, 28 June 2006 23:30 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Amy Wu wrote:

> It is generally not recommended that you directly embed editors inside
> of dialogs or other controls. Instead, you should embed the editor's
> SourceViewer and then add the extra actions you need.
>
> But, if you do want to embed the editor..
> XML editor, including design & source page:
> org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part
>

You can imbed the entire editor page into a dialog area? I know how to
embed the source viewer, but not the entire editor. How would you do
that? (I can certainly open an editor instance using the id
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part. But,
that's about it.)

Thanks.

> Just the XML source page editor:
> org.eclipse.wst.sse.ui.StructuredTextEditor
> and when you pass in the IEditorSite for the editor, make sure the site
> you pass in has an id of ContentTypeIdForXML.ContentTypeID_XML +
> ".source" (see XMLMultiPageEditorPart#createSite for example)
>
>
> AL wrote:
>
>> AL wrote:
>>
>>> Hi,
>>>
>>> I have a dialog with an area that I want to imbed an XML editor.
>>> Since web tool has one, I want to embed its editor. This I can do,
>>> as long as I know web tool's editor's main class/plugin to
>>> instantiate it.
>>>
>>> Any tips?
>>>
>>> Thanks
>>
>>
>> Programmatically, that is.
Re: How can I instantiate an instance of WebTool's XML editor? [message #172829 is a reply to message #172676] Sun, 02 July 2006 21:38 Go to previous message
JY Missing name is currently offline JY Missing nameFriend
Messages: 9
Registered: July 2009
Junior Member
I am also interested to do the same thing.

In fact, I will like to make a MultiPageEditorPart which combines an XML editor, a JavaScript editor and an CSS editor, each one in a different tab.

How is it possible?

PS : I am totally newby ! :-)
Previous Topic:Importing existing web project with Callisto
Next Topic:Callisto is live!
Goto Forum:
  


Current Time: Fri Apr 19 20:52:15 GMT 2024

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

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

Back to the top