Bug 32038 Use shared images for properties, tasks, bookmarks views
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/MarkerUtil.java
public static String getLineAndLocation(int lineNumber, String location) {
		if (lineNumber == -1) {
			if (location.equals("")) {
				return "";
			}
			else {
				return location;
			}
		}
		else {
			if (location.equals("")) {
				return line.format(new Object[] { Integer.toString(lineNumber) });
			}
			else {
				return lineAndLocation.format(new Object[] { Integer.toString(lineNumber), location });
			}
		}
	}
	/**
	 * Returns the line number of the given marker.
	 */
	public static int getLineNumber(IMarker marker) {
		return marker.getAttribute(IMarker.LINE_NUMBER, -1);
	}
	/**
	 * Returns the text for the location field.
	 */
	public static String getLocation(IMarker marker) {
		return marker.getAttribute(IMarker.LOCATION, "");
	}