Modifier and Type | Field and Description |
---|---|
String |
childError
The name of child property in error.
|
int |
index
Index for property reference error, -1 when not set.
|
int |
length
The character length of the marker, -1 when not position based.
|
String |
location
The location.
|
static String |
MARKER_ATTRIBUTE_CHILD_NAME
Attribute in Property problem marker for Property Reference to a child name.
|
static String |
MARKER_ATTRIBUTE_PROPERTY_INDEX
Attribute in Property problem marker for Property Reference with an indexed multi-property,
assigns an Integer value (equal or greater than zero), otherwise not set.
|
static String |
MARKER_ATTRIBUTE_PROPERTY_REFERENCE
Attribute in Property problem marker for Property Reference.
|
static String |
MARKER_ID_PROPERTY
The Property problem marker ID.
|
String |
markerID
The Eclipse-registered marker ID.
|
String |
message
The message.
|
String[] |
quickFixIDs
Array of registered quick-fixes for the problem (all must be registered in QuickFixer), never null.
|
String |
reference
Property reference of the error, null when not a property error.
|
int |
severity
Marker severity: IMarker.SEVERITY_ERROR=2, IMarker.SEVERITY_WARNING=1 or IMarker.SEVERITY_INFO=0.
|
int |
start
The character start position of the marker, -1 when not position based.
|
Constructor and Description |
---|
PropMarker(PropErrorItemOrigin errorItemOrigin)
Creates a new property marker for a property error item.
|
PropMarker(String markerID,
boolean isError,
String message,
int start,
int length,
String... quickFixIDs)
Creates a new property marker for a property, specialized to text file position, e.g for Java source file.
|
PropMarker(String markerID,
boolean isError,
String message,
String location,
String... quickFixIDs)
Creates a new property marker for a property, typically used for general errors.
|
Modifier and Type | Method and Description |
---|---|
boolean |
createMarker(IResource resource)
Creates the marker.
|
static void |
deleteAllMarkers(IResource resource)
Removes all markers for a resource directly or in a job if it fails.
|
static void |
deleteAllMarkers(IResource resource,
String type,
boolean includeSubtypes,
int depth,
Runnable completed)
Removes all markers for a resource directly or in a job if it fails.
|
static void |
deleteMarkers(IResource resource,
String markerID)
Removes all markers of the iizi Module type and any file errors associated with
an attached property.
|
void |
dispose(IResource resource)
Disposes of a marker.
|
static GProp<?> |
getProperty(IMarker marker)
Gets the property from the reference in the marker.
|
static void |
registerMarker(String markerID,
boolean isPersistent)
Registers a marker for a plug-in.
|
void |
run()
Performs the adding of the marker in a job.
|
void |
setMultipleTracked()
Sets the marker state to multiple-create, i.e.
|
String |
toString()
The string representation.
|
public static final String MARKER_ID_PROPERTY
public static final String MARKER_ATTRIBUTE_PROPERTY_REFERENCE
public static final String MARKER_ATTRIBUTE_CHILD_NAME
public static final String MARKER_ATTRIBUTE_PROPERTY_INDEX
public final String markerID
public final int severity
public final String message
public final String location
public final String reference
public final int index
public final int start
public final int length
public final String[] quickFixIDs
public final String childError
public PropMarker(String markerID, boolean isError, String message, String location, String... quickFixIDs)
markerID
- The Eclipse-registered marker ID.isError
- Flag for error, false = warning.message
- The message.location
- The location.quickFixIDs
- List of registered quick-fixes for the problem (all must be registered in QuickFixer)-public PropMarker(String markerID, boolean isError, String message, int start, int length, String... quickFixIDs)
markerID
- The Eclipse-registered marker ID.isError
- Flag for error, false = warning.message
- The message.start
- The (character) start location in the file.length
- The length of the marker.quickFixIDs
- List of registered quick-fixes for the problem (all must be registered in QuickFixer)-public PropMarker(PropErrorItemOrigin errorItemOrigin)
errorItemOrigin
- The error item including origin.public static GProp<?> getProperty(IMarker marker)
public static void registerMarker(String markerID, boolean isPersistent)
public static void deleteMarkers(IResource resource, String markerID) throws CoreException
resource
- The resource.markerID
- The marker ID to remove or null for all.CoreException
- If a marker cannot be deleted.public static void deleteAllMarkers(IResource resource)
resource
- The resource.public static void deleteAllMarkers(IResource resource, String type, boolean includeSubtypes, int depth, Runnable completed)
resource
- The resource.type
- The type of marker to consider, or null
to indicate all types.includeSubtypes
- Whether or not to consider sub-types of the given type.depth
- How far to recurse (see IResource.DEPTH_*
).completed
- A runnable that is called when it completes, null for none.public void setMultipleTracked()
public boolean createMarker(IResource resource)
public void run()
public void dispose(IResource resource)
resource
- The resource, or null for no marker removal on the resource.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.