public class MarkerList
extends java.lang.Object
Constructor and Description |
---|
MarkerList()
Creates an initially empty marker list
|
MarkerList(java.util.Collection markers) |
MarkerList(ConcreteMarker[] markers)
Creates a list containing the given set of markers
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
asList() |
void |
clearCache()
Clears any cached collation keys.
|
void |
clearGroups()
Clear all of the group settings in the receiver.
|
static MarkerList |
compute(MarkerFilter[] filters,
org.eclipse.core.runtime.IProgressMonitor mon,
boolean ignoreExceptions)
Computes the set of markers that match the given filter
|
static org.eclipse.core.resources.IMarker[] |
compute(java.lang.String[] types)
Returns a new MarkerList containing all markers in the workspace of the specified types
|
static ConcreteMarker |
createMarker(org.eclipse.core.resources.IMarker marker) |
static ConcreteMarker[] |
createMarkers(org.eclipse.core.resources.IMarker[] source) |
MarkerList |
findMarkers(java.util.Collection ofIMarker) |
java.lang.Object[] |
getArray()
Get the array that is the internal representation of the marker list without making a copy.
|
int |
getErrors()
Returns the number of error markers in the list
|
org.eclipse.core.resources.IMarker[] |
getIMarkers()
Return the list of IMarkers contained in the receiver.
|
int |
getInfos()
Returns the number of info markers in the list
|
int |
getItemCount()
Returns the number of items in the list
|
ConcreteMarker |
getMarker(org.eclipse.core.resources.IMarker toFind)
Returns an existing marker from the list that is associated with the given IMarker
|
ConcreteMarker |
getMarker(int index)
Return the markers at index
|
int |
getSize()
Get the size of the receiver.
|
int |
getWarnings()
Returns the number of warning markers in the list
|
void |
refresh() |
void |
refreshAll()
Refresh all of the markers in the receiver.
|
ConcreteMarker[] |
toArray()
Returns the markers in the list.
|
void |
updateMarkers(java.util.Collection addedMarkers,
java.util.Collection removedMarkers)
Add the addedMarkers to the receiver.
|
public MarkerList()
public MarkerList(java.util.Collection markers)
public MarkerList(ConcreteMarker[] markers)
markers
- public void clearCache()
public ConcreteMarker getMarker(org.eclipse.core.resources.IMarker toFind)
toFind
- the IMarker to lookup in the listpublic org.eclipse.core.resources.IMarker[] getIMarkers()
public static ConcreteMarker createMarker(org.eclipse.core.resources.IMarker marker) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void refresh()
public java.util.List asList()
public MarkerList findMarkers(java.util.Collection ofIMarker)
public static ConcreteMarker[] createMarkers(org.eclipse.core.resources.IMarker[] source) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static MarkerList compute(MarkerFilter[] filters, org.eclipse.core.runtime.IProgressMonitor mon, boolean ignoreExceptions) throws org.eclipse.core.runtime.CoreException
filters
- the filters to applymon
- the monitor to updateignoreExceptions
- whether or not exception will be shownorg.eclipse.core.runtime.CoreException
public static org.eclipse.core.resources.IMarker[] compute(java.lang.String[] types) throws org.eclipse.core.runtime.CoreException
types
- org.eclipse.core.runtime.CoreException
public ConcreteMarker[] toArray()
public int getItemCount()
public int getErrors()
public int getInfos()
public int getWarnings()
public java.lang.Object[] getArray()
public int getSize()
public ConcreteMarker getMarker(int index)
index
- public void updateMarkers(java.util.Collection addedMarkers, java.util.Collection removedMarkers)
addedMarkers
- Collection of ConcreteMarkerremovedMarkers
- Collection of ConcreteMarkerpublic void refreshAll()
public void clearGroups()