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.
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.
Created attachment 77084 [details] Patch
Created attachment 77095 [details] Replacement for previous patch