Package org.eclipse.cdt.core
Class ProblemMarkerInfo
java.lang.Object
org.eclipse.cdt.core.ProblemMarkerInfo
ProblemMarkerInfo is an object used to pass error properties to ErrorParserManager.
The information stored in this object will later be used to create an IMarker by ACBuilder- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintorg.eclipse.core.runtime.IPathorg.eclipse.core.resources.IResourceintintint -
Constructor Summary
ConstructorsConstructorDescriptionProblemMarkerInfo(org.eclipse.core.resources.IResource file, int lineNumber, int startChar, int endChar, String description, int severity, String variableName) Create a newProblemMarkerInfoobject.ProblemMarkerInfo(org.eclipse.core.resources.IResource file, int lineNumber, String description, int severity, String variableName) Create a newProblemMarkerInfoobject.ProblemMarkerInfo(org.eclipse.core.resources.IResource file, int lineNumber, String description, int severity, String variableName, org.eclipse.core.runtime.IPath externalPath) Create a newProblemMarkerInfoobject. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) Return the value of the attribute with the given key, or null if no such attribute exists.Get the attribute map.getType()Return the type of this problem marker or null if type was not set.booleanFlag marker for potential deferred de-duplication.voidsetAttribute(String key, String value) Set the value of the attribute with the given key to the given value, or add one if one does not already exist.voidsetDeferDeDuplication(boolean deferDeDuplication) Flag marker for potential deferred de-duplication.voidSet the type of this problem marker.
-
Field Details
-
file
public org.eclipse.core.resources.IResource file -
lineNumber
public int lineNumber -
startChar
public int startChar- Since:
- 5.4
-
endChar
public int endChar- Since:
- 5.4
-
description
-
severity
public int severity -
variableName
-
externalPath
public org.eclipse.core.runtime.IPath externalPath
-
-
Constructor Details
-
ProblemMarkerInfo
public ProblemMarkerInfo(org.eclipse.core.resources.IResource file, int lineNumber, String description, int severity, String variableName) Create a newProblemMarkerInfoobject.- Parameters:
file- - the file where the problem has occurred.lineNumber- - the line number of the problem.description- - a description of the problem.severity- - the severity of the problem, seeIMarkerGeneratorfor acceptable severity values.variableName- - the name of the variable involved in the error if any.
-
ProblemMarkerInfo
public ProblemMarkerInfo(org.eclipse.core.resources.IResource file, int lineNumber, int startChar, int endChar, String description, int severity, String variableName) Create a newProblemMarkerInfoobject.- Parameters:
file- - the file where the problem has occurred.lineNumber- - the line number of the problem.startChar- - start char of the problem.endChar- - end char of the problem.description- - a description of the problem.severity- - the severity of the problem, seeIMarkerGeneratorfor acceptable severity values.variableName- - the name of the variable involved in the error if any.- Since:
- 5.4
-
ProblemMarkerInfo
public ProblemMarkerInfo(org.eclipse.core.resources.IResource file, int lineNumber, String description, int severity, String variableName, org.eclipse.core.runtime.IPath externalPath) Create a newProblemMarkerInfoobject.- Parameters:
file- - the file where the problem has occurred.lineNumber- - the line number of the problem.description- - a description of the problem.severity- - the severity of the problem, seeIMarkerGeneratorfor acceptable severity valuesvariableName- - the name of the variable involved in the error if any.externalPath- - if this error involves a file outside the workspace this parameter should contain the path to that file.
-
-
Method Details
-
getAttributes
Get the attribute map.- Returns:
- Map of attributes and their values.
- Since:
- 5.4
-
getAttribute
Return the value of the attribute with the given key, or null if no such attribute exists.- Parameters:
key- - attribute key.- Returns:
- attribute value
- Since:
- 5.4
-
setAttribute
Set the value of the attribute with the given key to the given value, or add one if one does not already exist.- Parameters:
key- - attribute key.value- - new attribute value.- Since:
- 5.4
-
getType
Return the type of this problem marker or null if type was not set.- Returns:
- the type.
- Since:
- 5.4
-
setType
Set the type of this problem marker.- Parameters:
type- - the new type.- Since:
- 5.4
-
isDeferDeDuplication
public boolean isDeferDeDuplication()Flag marker for potential deferred de-duplication. SeeACBuilder.deDuplicate()- Returns:
- the deferDeDuplication
- Since:
- 6.3
-
setDeferDeDuplication
public void setDeferDeDuplication(boolean deferDeDuplication) Flag marker for potential deferred de-duplication. SeeACBuilder.deDuplicate()- Parameters:
deferDeDuplication- the deferDeDuplication to set- Since:
- 6.3
-