[Pydev-cvs] org.python.pydev/src/org/python/pydev/builder PydevMarkerUtils.java,1.1,1.2
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-09-23 01:19:44
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/builder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28170/src/org/python/pydev/builder Modified Files: PydevMarkerUtils.java Log Message: Index: PydevMarkerUtils.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/builder/PydevMarkerUtils.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PydevMarkerUtils.java 12 Sep 2005 00:06:31 -0000 1.1 --- PydevMarkerUtils.java 23 Sep 2005 01:19:36 -0000 1.2 *************** *** 5,8 **** --- 5,9 ---- import java.util.HashMap; + import java.util.Map; import org.eclipse.core.resources.IMarker; *************** *** 98,101 **** --- 99,108 ---- int lineStart, int colStart, int lineEnd, int colEnd, String markerType, int severity) { + createMarker(resource, doc, message, lineStart, colStart, lineEnd, colEnd, markerType, severity, null); + } + + public static void createMarker(IResource resource, IDocument doc, String message, + int lineStart, int colStart, int lineEnd, int colEnd, + String markerType, int severity, Map<String, Object> additionalInfo) { if(lineStart < 0){ *************** *** 145,148 **** --- 152,160 ---- map.put(IMarker.SEVERITY, new Integer(severity)); + //add the additional info + for (Map.Entry<String, Object> entry : additionalInfo.entrySet()) { + map.put(entry.getKey(), entry.getValue()); + } + MarkerUtilities.createMarker(resource, map, markerType); } catch (Exception e) { |