Beispiel #1
0
 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;
 }
Beispiel #2
0
 private IFile findFile(String path) {
   return ResourceUtil.getFileForLocation(repository, path);
 }