| Summary: | Delete deprecated IResource#isReadOnly API | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Szymon Brandys <Szymon.Brandys> |
| Component: | Resources | Assignee: | Platform-Resources-Inbox <platform-resources-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | markus.kell.r, Mike_Wilson |
| Version: | 3.6 | Keywords: | api |
| Target Milestone: | --- | Flags: | Szymon.Brandys:
review?
(john.arthorne) |
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Szymon Brandys
I'm not convinced about deleting this one. I found 30+ references to it in the Eclipse SDK alone, so clearly it is heavily used and will cause migration pain for clients. One concern is that the equivalent of: boolean result = resource.isReadOnly() Using the new API is: boolean result = false; ResourceAttributes attrs = resource.getResourceAttributes(); if (attrs != null) result = attrs.isReadOnly(); Since the equivalent code with the new API is much longer, clients still use the old method as a convenience. So, unless we can argue that the old method produces a result that is misleading or wrong in some cases, I think we should keep it. So maybe we should remove the @deprecated flag. Instead we should say that this is a convenience method as we already do in some other cases. *** This bug has been marked as a duplicate of bug 208982 *** |