Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Embed XML Editor
Embed XML Editor [message #169449] Tue, 16 May 2006 18:09 Go to next message
Andrew Eberbach is currently offline Andrew EberbachFriend
Messages: 7
Registered: July 2009
Junior Member
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 07:28 Go to previous message
Alain Marc Pannetier is currently offline Alain Marc PannetierFriend
Messages: 26
Registered: July 2009
Junior Member
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 Apr 26 23:51:32 GMT 2024

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

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

Back to the top