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 119747 - Do not save empty non permanent mode and wstcref for non persistent TCs
Summary: Do not save empty non permanent mode and wstcref for non persistent TCs
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-23 11:08 UTC by mslama
Modified: 2008-12-22 12:09 UTC (History)
2 users (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 mslama 2007-10-23 11:08:43 UTC
x
Comment 1 mslama 2007-11-09 12:35:23 UTC
This problem was introduced by fix of issue #101700.

When we stop removing closed non persistent TCs from model it is necessary to filter non persistent TCs during winsys
save. Problem is that TC persistence type can be found only from TC instance so when TC is gc'ed we cannot find out TC
persistence type. So we have to introduce new set for non persistent TC Ids. Separately for PERSISTENCE_ONLY_OPENED and
PERSISTENCE_NEVER as we need to distinguish case when TC is opened or closed in case of PERSISTENCE_ONLY_OPENED. Then
this info can be used to filter non persistent TCs and then empty non permanent Modes when winsys is saved.

Modified:
/cvs/core/windows/src/org/netbeans/core/windows/PersistenceHandler.java
new revision: 1.57; previous revision: 1.56

/cvs/core/windows/src/org/netbeans/core/windows/persistence/PersistenceManager.java
new revision: 1.53; previous revision: 1.52