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 216037 - TopComponent.PERSISTENCE_NEVER changed behavior in 7.2
Summary: TopComponent.PERSISTENCE_NEVER changed behavior in 7.2
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 04:57 UTC by Geertjan Wielenga
Modified: 2012-09-07 12:34 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2012-07-27 04:57:25 UTC
If a TopComponent has TopComponent.PERSISTENCE_NEVER set:

- it will not open on startup, even if openAtStartup = true

- when WindowManager.getDefault().findTopComponent is used, it will open in editor mode, regardless of the mode that has been set
Comment 1 cdavis 2012-07-27 14:23:24 UTC
Additionally, unless a TopComponent is persisted WindowManager.getDefault().findTopComponent(tcID) returns null.
Comment 2 Stanislav Aubrecht 2012-07-27 19:33:35 UTC
This is caused by fix for #211331.
TopComponents with PERSISTENCE_NEVER should not have any .settings generated to XML layers and it should dock into desired mode itself when being opened.

But this abuse of window system API is so widespread that I reverted the fix for #211331 in core-main f6df55211b11
Comment 3 Tomas Danek 2012-08-28 14:29:58 UTC
verified in trunk, please backport to releases for patch1..

Product Version: NetBeans IDE Dev (Build 201208280001)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Mac OS X version 10.8 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
Comment 4 Stanislav Aubrecht 2012-08-29 09:03:01 UTC
transplanted to release72 branch as eea17d04340e