Re: [xml-dev] XMLDataObject.getTreeDocument()

Petr Kuzel <[email protected]> Wed, 05 Mar 2003 08:56:40 +0100
Newsgroups gmane.comp.java.netbeans.modules.xml.devel
Organization Sun Microsystems
Message-ID <[email protected]>
Rich Unger wrote:
> I've read through issue 19228.  I've got some code that uses
> XMLDataObject.getTreeDocument().  Is there some simple replacement
> call that uses cookies to get this?

Yes. You can use TreeEditorCookie.openDocument(). There is
a room for improvement, now it model too tight coupled with its
visual editor. Another related cookie the TreeDocumentCookie
but it now serves as flag. The implementation does not build
tree model it simply returns null if if was not built by
TreeEditorCookie.openDocument().

XMLDataObject refactoring targeted decoupling DataObject
from its model. One XML document can have more possibly
cooperating models. We need to lightweight DataObjects
for performance reasons too.

   I hope I helps
   Cc.

-- 
<address>
<a href="mailto:[email protected]">Petr Kuzel</a> at Sun Microsystems :
<a href="http://performance.netbeans.org/">IDE performance</a></address>