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 - TopComponent persistence : allow change TC's persistenceType within shutdown sequnce
Summary: TopComponent persistence : allow change TC's persistenceType within shutdown ...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-17 17:20 UTC by mikkeg
Modified: 2009-02-18 13:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch (1.07 KB, text/plain)
2009-02-17 17:28 UTC, mikkeg
Details
Replacement for previous patch (1.61 KB, text/plain)
2009-02-18 13:01 UTC, mikkeg
Details

Note You need to log in before you can comment on or make changes to this bug.
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