|Programmaticlly call XML Formatter [message #215151]
||Thu, 12 June 2008 11:43
| Anders Olsson
Registered: July 2009
Is there any way of - through another plug-in, programmatically - doing |
what WST does when you right-click an xml-file and choose:
I found someone who had a similar problem quite a while ago, but since the
thread is a monologue, it isn't very helpful.
I've been trying to use:
I've found no other (less ...provisional) Class for this.
This does work, despite the access being discouraged, but so far only for
String input. When I run the 'formatDocument(IDocument)' method, I get a
NPE on line 138 in
(R_2_0_2), because the structuredModel variable is null. The IDocument I
supply is from a JET transformation (and isn't null). Is there something
special expected of the supplied IDocument, or is there something I've
forgotten to init before calling the method?
Thanks in advance for any pointers whatsoever,
Powered by FUDForum
. Page generated in 0.01478 seconds