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.
Steps to reproduce: -undock Runtime tab from Explorer (New Single frame) -dock Runtime back to Explorer -undock it again -New window name appears - Runtime_1 - it's caused by that mode Runtime still persist -> it should be deleted immediately after closing the window. Will it be fixed in beta6, Dafe ?
Target milestone -> 3.3.1.
Single modes created by user should be deleted. Also DataObject should be deleted if it already exists (IDE was restarted between creation and deleting mode). Otherwise mode could come back when refresh on modes will be performed. It will be fixed to release33 (NB 3.3.1).
due to issue #18039, this issue is bigger problem - number of modes still rise P3->P2
I'm taking this one.
Hi guys, I'm attaching the patch that sould solve this problem. Please, test if works correctly. It's verbose patch, will print some information about what it is doing to the console, pay attention to these debug prints. Unfortunately, diff is rather big, so review will not be as easy.
Created attachment 3717 [details] suggested patch, to be used with release33 branch
Created attachment 3718 [details] diff
fixed in release33 branch. attaching commit log.
Created attachment 3737 [details] commit log
fixed in release33.
with this patch user-defined modes are not stored any more onm close. One problem : if somebody start ide with NB33 userdir with old user-def modes then IDe on start deletes and clears modes. This action take a long time BUT it happens only once and then it works properly... I'm attaching my testing project with 1000 user-defined modes, enjoy ;))
Created attachment 3740 [details] projects zip
last part of commit log below. Complete fix fixes both this bug and 18365, it's not easily possible to fix these two bugs separately. Checking in WorkspaceImpl.java; /cvs/core/src/org/netbeans/core/windows/WorkspaceImpl.java,v <-- WorkspaceImpl.java new revision: 1.85.2.3; previous revision: 1.85.2.2 done
verified in release33 and in 330 too
Resolved for 3.4.x or earlier, no new info since then -> closing.