Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Embed XML Editor
Embed XML Editor [message #169449] Tue, 16 May 2006 14:09 Go to next message
Andrew Eberbach is currently offline Andrew Eberbach
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 03:28 Go to previous message
Alain Marc Pannetier is currently offline Alain Marc Pannetier
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: Wed Aug 27 09:15:45 EDT 2014

Powered by FUDForum. Page generated in 0.01532 seconds