|
|
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 |
Eclipse User |
|
|
|
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 |
Alex Le 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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03034 seconds