# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: E:\NB CVS\core\windows\src\org\netbeans\core\windows # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: Central.java --- E:\NB CVS\core\windows\src\org\netbeans\core\windows\Central.java Base (1.62) +++ E:\NB CVS\core\windows\src\org\netbeans\core\windows\Central.java Locally Modified (Based On 1.62) @@ -891,8 +891,14 @@ } model.removeModeTopComponent(mode, tc, recentTc); String id = WindowManagerImpl.getInstance().findTopComponentID(tc); + /** BugId #109098 + * make sure you call this only on TCs that are NOT TC.PERSISTENT_ALWAYS + */ + if(!(tc.getPersistenceType()==TopComponent.PERSISTENCE_ALWAYS)){ PersistenceManager.getDefault().removeGlobalTopComponentID(id); + } + ModeImpl oldActive = getActiveMode(); ModeImpl newActive; if(model.getModeOpenedTopComponents(mode).isEmpty() && mode == oldActive) {