/** * Return all handles to Resource files for the given URI (in absolute form) * * @param filePathURI * - Absolute URI to the file * @return - File handles to resource files within the workspace */ public static IFile[] getWorkSpaceFiles(URI filePathURI) { IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IFile[] files = null; if (filePathURI != null) { files = filterNonExistentFiles(root.findFilesForLocationURI(filePathURI)); } return files; }