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.
}
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) {