/** * Returns the line number of the given marker. * * @param marker the marker * @return the line number, or <code>-1</code> if not set * @see IMarker#LINE_NUMBER * @see IMarker#getAttribute(java.lang.String,int) */ public static int getLineNumber(IMarker marker) { return getIntAttribute(marker, IMarker.LINE_NUMBER, -1); }
/** * Returns the severity of the given marker. * * @param marker the marker * @return the priority, or <code>IMarker.SEVERITY_INFO</code> if not set * @see IMarker#SEVERITY * @see IMarker#SEVERITY_INFO * @see IMarker#getAttribute(java.lang.String,int) */ public static int getSeverity(IMarker marker) { return getIntAttribute(marker, IMarker.SEVERITY, IMarker.SEVERITY_INFO); }
/** * Returns the ending character offset of the given marker. * * @param marker the marker * @return the ending character offset, or <code>-1</code> if not set * @see IMarker#CHAR_END * @see IMarker#getAttribute(java.lang.String, int) */ public static int getCharEnd(IMarker marker) { return getIntAttribute(marker, IMarker.CHAR_END, -1); }
/** * Returns the starting character offset of the given marker. * * @param marker the marker * @return the starting character offset, or <code>-1</code> if not set * @see IMarker#CHAR_START * @see IMarker#getAttribute(java.lang.String,int) */ public static int getCharStart(IMarker marker) { return getIntAttribute(marker, IMarker.CHAR_START, -1); }
/** * Returns the priority of the given marker. * * @param marker the marker * @return the priority, or <code>IMarker.PRIORITY_NORMAL</code> if not set * @see IMarker#PRIORITY * @see IMarker#PRIORITY_NORMAL * @see IMarker#getAttribute(java.lang.String,int) */ public static int getPriority(IMarker marker) { return getIntAttribute(marker, IMarker.PRIORITY, IMarker.PRIORITY_NORMAL); }
/** * Returns the starting character offset of the given marker. * * @param marker the marker * @return the starting character offset, or <code>-1</code> if not set * @see IMarker#CHAR_START * @see IMarker#getAttribute(java.lang.String,int) */ public static int getCharStart(IMarker marker) { return getIntAttribute(marker, IMarker.CHAR_START, -1); }
/** * Returns the priority of the given marker. * * @param marker the marker * @return the priority, or <code>IMarker.PRIORITY_NORMAL</code> if not set * @see IMarker#PRIORITY * @see IMarker#PRIORITY_NORMAL * @see IMarker#getAttribute(java.lang.String,int) */ public static int getPriority(IMarker marker) { return getIntAttribute(marker, IMarker.PRIORITY, IMarker.PRIORITY_NORMAL); }
/** * Returns the ending character offset of the given marker. * * @param marker the marker * @return the ending character offset, or <code>-1</code> if not set * @see IMarker#CHAR_END * @see IMarker#getAttribute(java.lang.String, int) */ public static int getCharEnd(IMarker marker) { return getIntAttribute(marker, IMarker.CHAR_END, -1); }
/** * Returns the line number of the given marker. * * @param marker the marker * @return the line number, or <code>-1</code> if not set * @see IMarker#LINE_NUMBER * @see IMarker#getAttribute(java.lang.String,int) */ public static int getLineNumber(IMarker marker) { return getIntAttribute(marker, IMarker.LINE_NUMBER, -1); }
/** * Returns the severity of the given marker. * * @param marker the marker * @return the priority, or <code>IMarker.SEVERITY_INFO</code> if not set * @see IMarker#SEVERITY * @see IMarker#SEVERITY_INFO * @see IMarker#getAttribute(java.lang.String,int) */ public static int getSeverity(IMarker marker) { return getIntAttribute(marker, IMarker.SEVERITY, IMarker.SEVERITY_INFO); }