private static int getProblemSeverity(Repository repository, String path) { IFile file = ResourceUtil.getFileForLocation(repository, path); if (file != null) { try { int severity = file.findMaxProblemSeverity(IMarker.PROBLEM, true, IResource.DEPTH_ONE); return severity; } catch (CoreException e) { // Fall back to below } } return IProblemDecoratable.SEVERITY_NONE; }
private IFile findFile(String path) { return ResourceUtil.getFileForLocation(repository, path); }