Package org.eclipse.ui.views.markers
Class MarkerItem
java.lang.Object
org.eclipse.ui.views.markers.MarkerItem
The MarkerItem class is the class that represents the objects displayed at
IMarker
related views. This class is not intended to be sub-classed
by clients.- Since:
- 3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAttributeValue
(String attribute, boolean defaultValue) Return the boolean associated with attributeName or defaultValue if it is not found.int
getAttributeValue
(String attribute, int defaultValue) Get the value of the attribute in the enclosed marker.getAttributeValue
(String attribute, String defaultValue) Get the String value of the attribute in the enclosed marker.Get the location string for the receiver.Return the marker for the receiver.getPath()
Get the path string for the receiver.
-
Constructor Details
-
MarkerItem
public MarkerItem()
-
-
Method Details
-
getAttributeValue
Return the boolean associated with attributeName or defaultValue if it is not found.- Parameters:
attribute
- the attributedefaultValue
- the defaultValue if the value is not set- Returns:
boolean
-
getAttributeValue
Get the value of the attribute in the enclosed marker.- Parameters:
attribute
- the attributedefaultValue
- the defaultValue if the value is not set- Returns:
- int
-
getAttributeValue
Get the String value of the attribute in the enclosed marker.- Parameters:
attribute
- the attributedefaultValue
- the defaultValue if the value is not set- Returns:
- String
-
getLocation
Get the location string for the receiver. This method is provided for convenience purposes as the location can be inferred from a line number or location attribute if theMarkerItem
has an associatedIMarker
.- Returns:
- String
- See Also:
-
getPath
Get the path string for the receiver. This method is provided for convenience as a path can be inferred from the location of anIResource
or the path attribute if theMarkerItem
has an associatedIMarker
.- Returns:
- String
- See Also:
-
MarkerItemDefaults.PATH_ATTRIBUTE
IResource.getLocation()
-
getMarker
Return the marker for the receiver.- Returns:
- IMarker
-