/** * Returns the marker type of the given marker or <code>null</code> if * the type could not be determined. * * @param marker the marker * @return the marker type * @since 3.0 */ public static String getMarkerType(IMarker marker) { try { return marker.getType(); } catch (CoreException x) { handleCoreException(x); } return null; }
/** * Returns the marker type of the given marker or <code>null</code> if * the type could not be determined. * * @param marker the marker * @return the marker type * @since 3.0 */ public static String getMarkerType(IMarker marker) { try { return marker.getType(); } catch (CoreException x) { handleCoreException(x); } return null; }
/** * Sets the specified attribute of the given marker as an integer. * * @param marker the marker * @param attributeName the attribute name * @param value the int value */ private static void setIntAttribute(IMarker marker, String attributeName, int value) { try { if (marker.exists()) marker.setAttribute(attributeName, value); } catch (CoreException e) { handleCoreException(e); } }
/** * Sets the specified attribute of the given marker as an integer. * * @param marker the marker * @param attributeName the attribute name * @param value the int value */ private static void setIntAttribute(IMarker marker, String attributeName, int value) { try { if (marker.exists()) marker.setAttribute(attributeName, value); } catch (CoreException e) { handleCoreException(e); } }
/** * Returns whether the given marker is of the given type (either directly or indirectly). * * @param marker the marker to be checked * @param type the reference type * @return <code>true</code>if maker is an instance of the reference type */ public static boolean isMarkerType(IMarker marker, String type) { if (marker != null) { try { return marker.exists() && marker.isSubtypeOf(type); } catch (CoreException x) { handleCoreException(x); } } return false; }
/** * Returns whether the given marker is of the given type (either directly or indirectly). * * @param marker the marker to be checked * @param type the reference type * @return <code>true</code>if maker is an instance of the reference type */ public static boolean isMarkerType(IMarker marker, String type) { if (marker != null) { try { return marker.exists() && marker.isSubtypeOf(type); } catch (CoreException x) { handleCoreException(x); } } return false; }