public static IMarker createMarker(String markerID,IResource resource,String message,int severity) throws CoreException {
  IMarker marker=resource.createMarker(markerID);
  marker.setAttribute(IMarker.SEVERITY,severity);
  marker.setAttribute(IMarker.MESSAGE,message);
  return marker;
}

public static IMarker createMarker ( String markerID , IResource resource , String message , int severity ) throws CoreException { IMarker marker = resource . createMarker ( markerID ) ; marker . setAttribute ( IMarker . SEVERITY , severity ) ; marker . setAttribute ( IMarker . MESSAGE , message ) ; return marker ; }
create a marker with the given markerid on a resource .
