An annotation to prevent the developer from accidentally moving or deleting a static resource (icon, ...) which is still referred to from live code.
Created attachment 113382 [details]
Proposed patch (API plus sample usage)
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...
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.
Integrated into 'main-golden'
User: Jesse Glick <email@example.com>
Log: #205377: @StaticResource