|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
Registered: July 2009
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.)
> Just the XML source page editor:
> 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:
>>> 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?
>> Programmatically, that is.
Powered by FUDForum
. Page generated in 0.01783 seconds