Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Embed XML Editor
Embed XML Editor [message #169449] Tue, 16 May 2006 14:09 Go to next message
Eclipse UserFriend
Hi,

I'd like to embed the XML editor (optionally with both the design and
source tabs) in another editor. Is this possible? If so, can someone point
me to a good place to get started?



thanks,
Andrew
Re: Embed XML Editor [message #169572 is a reply to message #169449] Thu, 18 May 2006 03:28 Go to previous message
Eclipse UserFriend
I'm not sure you can nest the tabs (doubt it).

What you can do is a Multi Part Editor in which one of the nested editor
is
the StructuredSourceEditor.

You can start with downloading the examples plugin, install it, import
(with source) the MultiPart Editor and then substitute the TextEditor page
with the
StructuredSourceEditor.

void createPage0() {
try {
editor = new StructuredTextEditor();
int index = addPage(editor, getEditorInput());
setPageText(index, editor.getTitle());
} catch (PartInitException e) {
...

You will need to declare a dependency on org.eclipse.wst.sse.ui.

You can also probably find out how to include the tab with the model view
in another page but I've not tried that yet.

Regards,

Alain
Previous Topic:BUILD FAILED error in WTP when building the WebProject
Next Topic:xsd edit does not reflect in graph view
Goto Forum:
  


Current Time: Fri May 09 02:25:09 EDT 2025

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

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

Back to the top