@param name Resource name. @return true if one of the workspace sources contains the resource.
(String name)
| 302 | * @return {@code true} if one of the workspace sources contains the resource. |
| 303 | */ |
| 304 | public boolean hasFile(String name) { |
| 305 | if(primary.getFiles().containsKey(name)) |
| 306 | return true; |
| 307 | for(JavaResource resource : getLibraries()) |
| 308 | if(resource.getFiles().containsKey(name)) |
| 309 | return true; |
| 310 | return false; |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * @param name |
nothing calls this directly
no test coverage detected