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 205377

Summary: @StaticResource
Product: platform Reporter: Jesse Glick <jglick>
Component: Module SystemAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: normal CC: apireviews
Priority: P3 Keywords: API, API_REVIEW_FAST
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 96532    
Attachments: Proposed patch (API plus sample usage)

Description Jesse Glick 2011-11-21 19:51:14 UTC
An annotation to prevent the developer from accidentally moving or deleting a static resource (icon, ...) which is still referred to from live code.
Comment 1 Jesse Glick 2011-11-21 19:54:56 UTC
Created attachment 113382 [details]
Proposed patch (API plus sample usage)
Comment 2 Jesse Glick 2011-11-21 19:55:59 UTC
Please review.
Comment 3 Jaroslav Tulach 2011-11-23 16:18:01 UTC
Y01 Module API does not seem like a natural place to host this API. Consider putting this into Common Annotation API. Btw. I'd like to add there @FinalInterface during 7.2 release...
Comment 4 Jesse Glick 2011-11-23 17:43:31 UTC
Common Annotations could work too. Really openide.filesystems or something depending on it would be easier, so that I could reuse impl from LayerBuilder, but this does not seem good from a dependency standpoint.
Comment 5 Jesse Glick 2011-11-28 16:11:45 UTC
core-main #21b5127751a3
Comment 6 Quality Engineering 2011-11-29 15:56:15 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/21b5127751a3
User: Jesse Glick <jglick@netbeans.org>
Log: #205377: @StaticResource