Example #1
0
 /**
  * Prints out the markers attached to a file
  *
  * @param tpl Path to the file
  */
 protected void dumpMarkers(final IPath tpl) {
   final IMarker[] markers = env.getMarkersFor(tpl);
   for (int i = 0; i < markers.length; i++) {
     final IMarker marker = markers[i];
     System.out.println(getDescription(marker));
   }
 }
Example #2
0
 /**
  * Asserts that no markers with severity ERROR are attached to a file
  *
  * @param tpl Path to the file
  */
 public void assertNoErrorMarkers(final IPath tpl) {
   final IMarker[] markers = env.getMarkersFor(tpl);
   for (IMarker marker : markers) {
     try {
       if (marker.isSubtypeOf(IMarker.PROBLEM)) {
         fail(getDescription(marker));
       }
     } catch (CoreException e) {
       throw new RuntimeException(e);
     }
   }
 }