RE: [xml-dev] XMLDataObject.getTreeDocument()
"Richard Unger" <[email protected]> Wed, 5 Mar 2003 11:12:36 -0800
| Newsgroups | gmane.comp.java.netbeans.modules.xml.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks, that's very helpful. I presume, BTW, that you mean = TreeEditorCookie.openDocumentRoot(), as there is no openDocument(). ...and the TreeDocumentRoot that's returned is actually an instance of = TreeDocument. Rich > -----Original Message----- > From: Petr Kuzel [mailto:[email protected]] > Sent: Tuesday, March 04, 2003 11:57 PM > To: [email protected] > Subject: Re: [xml-dev] XMLDataObject.getTreeDocument() >=20 >=20 > 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? >=20 > 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(). >=20 > 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. >=20 > I hope I helps > Cc. >=20 > --=20 > <address> > <a href=3D"mailto:[email protected]">Petr Kuzel</a> at Sun Microsystems : > <a href=3D"http://performance.netbeans.org/">IDE=20 > performance</a></address> >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >=20 >=20