Skip to main content



      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 13:45 Go to next message
Eclipse UserFriend
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 14:55 Go to previous messageGo to next message
Eclipse UserFriend
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 17: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 19:30 Go to previous messageGo to next message
Eclipse UserFriend
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 17:38 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 04:05:41 EDT 2025

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

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

Back to the top