DOM model of StructuredTextEditorXML [message #117322] |
Thu, 07 July 2005 06:16  |
Eclipse User |
|
|
|
Hi,
I have a question about the way to obtain the XML model of the
StructuredTextEditorXML. In 1.0M4 I used the method getDOMDocument() to do
this, but it has disappeared in the 0.7M5 release, so now I use the
following method :
private IDOMNode getDocumentElement() {
IDOMNode result = null;
IDOMDocument document = null;
IStructuredModel structuredModel = processDefinitionXMLEditor.getModel();
if (structuredModel != null) {
document = (IDOMDocument) structuredModel.getAdapter(Document.class);
}
if (document != null) {
result = (IDOMNode)document.getDocumentElement();
}
return result;
}
This works fine, but the getModel() method on StructuredTextEditorXML is
deprecated. So I wondered what the alternative ways of doing this are...
As you can see, I am also pretty heavily dependent on some of the
'internal.provisional' classes such as IDOMNode. This is because I use the
event notifications to do all kinds of stuff on the other tab of my
multipage editor. So I will also use this entry to lobby for these classes
to make it in the real API ;-)
Regards,
Koen
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03910 seconds