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.

Bug 62852 - Navigator view doesn't remember the opened/selected nodes
Summary: Navigator view doesn't remember the opened/selected nodes
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: PERFORMANCE, UI
Depends on:
Blocks:
 
Reported: 2005-08-23 13:20 UTC by John Jullion-ceccarelli
Modified: 2006-03-01 14:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2005-08-23 13:20:40 UTC
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.
Comment 1 Marek Fukala 2005-08-23 13:45:55 UTC
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?
Comment 2 John Jullion-ceccarelli 2005-08-23 14:26:04 UTC
Sounds great.
Comment 3 John Jullion-ceccarelli 2005-08-23 14:28:55 UTC
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.
Comment 4 Marek Fukala 2005-08-23 14:45:56 UTC
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.
Comment 5 Marek Fukala 2005-11-19 14:42:11 UTC
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
Comment 6 Jiri Kovalsky 2006-03-01 14:00:16 UTC
Works fine in FCS build #200601251500 of NetBeans 5.0.