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 198748

Summary: Mode.dockInto(tc) closes open TopComonent
Product: platform Reporter: err <err>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED FIXED    
Severity: normal CC: mentlicher, normanfo
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 198657    
Attachments: Debug session in (IntelliJ IDEA) that demonstrates the problem

Description err 2011-05-20 01:28:38 UTC
Filing as recommended by jtulach in Bug 198657 comment 2.

Perhaps this behavior was introduced when OutputWindow was reworked. Cc'ing mentlicher.
Comment 1 Stanislav Aubrecht 2011-07-18 13:53:54 UTC
core-main 8b0d6a9f62ee
Comment 2 Quality Engineering 2011-07-19 13:58:26 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/8b0d6a9f62ee
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #198748 - don't close opened TopComponents when moving them between modes
Comment 3 normanfo 2014-12-18 15:13:21 UTC
Created attachment 151173 [details]
Debug session in (IntelliJ IDEA) that demonstrates the problem
Comment 4 normanfo 2014-12-18 15:19:06 UTC
The bug still seems to be there or is back again in NetBeans 8.0.2. At least I am suffering from an equal case. I am rearranging/tiling editor windows in my app using a dedicated actions that dock opened top components into predefined editor modes. I've attached a screenshot of a debug session where one can see the call stack from Mode.dockInto() up to the point where my TopComponent.componentClosed() is called. You can also see from the code (TileUtilities.java) that I've checked whether the window is already contained the target mode to make sure it is contained open in another mode, before dockInto() is called.
-- Norman