Package org.eclipse.ui.views.markers
Class MarkerItem
- java.lang.Object
-
- org.eclipse.ui.views.markers.MarkerItem
-
-
Constructor Summary
Constructors Constructor Description MarkerItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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.String
getAttributeValue(String attribute, String defaultValue)
Get the String value of the attribute in the enclosed marker.String
getLocation()
Get the location string for the receiver.IMarker
getMarker()
Return the marker for the receiver.String
getPath()
Get the path string for the receiver.
-
-
-
Method Detail
-
getAttributeValue
public boolean getAttributeValue(String attribute, boolean defaultValue)
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
public int getAttributeValue(String attribute, int defaultValue)
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
public String getAttributeValue(String attribute, String defaultValue)
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
public 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:
IMarker.LOCATION
,IMarker.LINE_NUMBER
-
getPath
public String 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
public IMarker getMarker()
Return the marker for the receiver.- Returns:
- IMarker
-
-