Bug 32038 Use shared images for properties, tasks, bookmarks views
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/MarkerUtil.java
}
	/**
	 * Returns whether the given marker is of the given type (either directly or indirectly).
	 */
	public static boolean isMarkerType(IMarker marker, String type) {
		try {
			return marker.isSubtypeOf(type);
		}
		catch (CoreException e) {
			return false;
		}
	}
	/**
	 * Returns whether the given marker is read-only.
	 */
	public static boolean isReadOnly(IMarker marker) {
		return !marker.getAttribute(IMarker.USER_EDITABLE, true);
	}
	/**
	 * Returns the creation time of the marker as a string.
	 */
	public static String getCreationTime(IMarker marker) {
		try {
			return DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.MEDIUM).format(new Date(marker.getCreationTime()));
		} catch (CoreException e) {
			return null;
		}
	}
}