This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The XML view in the navigator needs a way to remember which tag nodes were open in the navigator view. I open the tag nodes and find a certain tag, but if I click anywhere else in the IDE (except Source Editor) the window is cleared and comes up with all closed tags when I reopen it.
I will change the bahaviour so the navigator panel content will be cached until you close the editor window with the corresponding file. Is that OK?
Sounds great.
Actually, if we're going to load the grammar for selected nodes that aren't open in the Source Editor then maybe this isn't the best mechanism for how to cache it. Don't know what the best solution is, though.
Good point. Originally I was thinking about caching even the not-in-editor-opened document views. This would be good if someone looks into a document structure without opening them and switch between more xml document. However this approach would cause a lot of memory to be allocated (the document itself, document model + the UI). Even the caching would be done using week references I still think this would be a superfluous overhead, at least for larger files. IMHO it would be better to throw the parsed data when switching between nodes in explorer and cache them only when the document is really opened in the editor. But it's just my opinion, I don't feel strong about it.
fixed Checking in xml/text-edit/src/org/netbeans/modules/xml/text/navigator/NavigatorContent.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/navigator/NavigatorContent.java,v <-- NavigatorContent.java new revision: 1.19; previous revision: 1.18 done
Works fine in FCS build #200601251500 of NetBeans 5.0.