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.
Summary: | @TopComponent.OpenActionRegistration misimplemented for non-singletons | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Window System | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | geertjan |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 191407 |
Description
Jesse Glick
2011-03-28 16:14:13 UTC
> But this behavior seems to rely on an undocumented (?) subtlety of layer
> semantics. Specifically, <attr
> name="XYZ" newvalue="org.netbeans.SampleClass"/> causes
> map.get("component") to create a fresh instance each time rather than caching
> the attribute value
I guess the simplest way is to document and test for this behavior in the filesystem TCK.
Would seem simpler and safer to just switch the registration to a componentClass attribute that makes no special assumptions about FS implementation details. I've documented and tested the current behavior in ergonomics#43c82c60d43d Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/43c82c60d43d User: Jaroslav Tulach <jtulach@netbeans.org> Log: #197161: Documenting the current behavior |