Пример #1
0
 @SuppressWarnings("unused")
 private static void getMarkersFor(final IResource resource, final IErlProject p)
     throws ErlModelException {
   final IErlModule m = p.getModule(resource.getName());
   if (m == null) {
     return;
   }
   m.getScanner();
   final Collection<IErlComment> cl = m.getComments();
   for (final IErlComment c : cl) {
     final String text = c.getName();
     final int line = c.getLineStart();
     mkMarker(resource, line, text, "TODO", IMarker.PRIORITY_NORMAL);
     mkMarker(resource, line, text, "XXX", IMarker.PRIORITY_NORMAL);
     mkMarker(resource, line, text, "FIXME", IMarker.PRIORITY_HIGH);
   }
   m.disposeScanner();
 }