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 158691

Summary: TopComponent persistence : allow change TC's persistenceType within shutdown sequnce
Product: platform Reporter: mikkeg <mikkeg>
Component: Window SystemAssignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Patch
Replacement for previous patch

Description mikkeg 2009-02-17 17:20:39 UTC
TopComponent can be made persistent by returning TopComponent.PERSISTENCE_ALWAYS or TopComponent.PERSISTENCE_ONLY_OPENED
in getPersistenceType() method. 

In my case i would like to give user the opportunity to decide if this particular TopComponent should be reopened next
time. 

Unfortunately if i change the persistence type dynamically (within shutdown sequence) it has no effect. Please see patch
supplied to resolve this problem.
Comment 1 mikkeg 2009-02-17 17:28:26 UTC
Created attachment 77084 [details]
Patch
Comment 2 mikkeg 2009-02-18 13:01:18 UTC
Created attachment 77095 [details]
Replacement for previous patch