[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools] Re: Use WTP XML model for programatically modifying a file
|
Abel Muiño wrote:
David Carver wrote:
I would recommend checking out the SourceEditing Unit Tests for seeing
how to create a StructuredDocument without loading a file.
I'm not familiar with WTP project structure (yet). Could you point me to
the specific project so I can checkout and review it.
Another question... is this also available in WTP 2.x or only in the
upcoming 3.x versions?
2.x and 3.x have the ability to get the DOM from the StructuredDocument.
Actually all versions of WTP have this ability.
The source for the unit tests can be found in the Web Tools CVS
repository under
/cvsroot/webtools/sourceediting/tests
For there you can check out the
org.eclipse.wst.xml.ui.tests
org.eclipse.wst.xml.core.tests
org.eclipse.wst.sse.core.tests
org.eclipse.wst.sse.ui.tests
These should give you enough to get you going.
Dave