public class ReportProblemsUtil
extends java.lang.Object
Constructor and Description |
---|
ReportProblemsUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanResource(org.eclipse.core.resources.IResource resource)
Deletes all markers on this resource.
|
static org.eclipse.core.resources.IMarker |
reportError(org.eclipse.core.resources.IResource resource,
java.lang.String msg,
int lineNumber,
int charStart,
int charEnd)
Reports an error in the Problems tab.
|
static org.eclipse.core.resources.IMarker |
reportInfo(org.eclipse.core.resources.IResource resource,
java.lang.String msg,
int lineNumber,
int charStart,
int charEnd)
Reports an info in the Problems tab.
|
static org.eclipse.core.resources.IMarker |
reportWarning(org.eclipse.core.resources.IResource resource,
java.lang.String msg,
int lineNumber,
int charStart,
int charEnd)
Reports a warning in the Problems tab.
|
public static void cleanResource(org.eclipse.core.resources.IResource resource) throws org.eclipse.core.runtime.CoreException
resource
- the resourceorg.eclipse.core.runtime.CoreException
public static org.eclipse.core.resources.IMarker reportWarning(org.eclipse.core.resources.IResource resource, java.lang.String msg, int lineNumber, int charStart, int charEnd) throws org.eclipse.core.runtime.CoreException, java.lang.NullPointerException
resource
- the resourcemsg
- the message to displaylineNumber
- the line to select (or 0)charStart
- the start of selection (or 0)charEnd
- the end of seletion (or 0)org.eclipse.core.runtime.CoreException
java.lang.NullPointerException
public static org.eclipse.core.resources.IMarker reportError(org.eclipse.core.resources.IResource resource, java.lang.String msg, int lineNumber, int charStart, int charEnd) throws org.eclipse.core.runtime.CoreException, java.lang.NullPointerException
resource
- the resourcemsg
- the message to displaylineNumber
- the line to select (or 0)charStart
- the start of selection (or 0)charEnd
- the end of seletion (or 0)org.eclipse.core.runtime.CoreException
java.lang.NullPointerException
public static org.eclipse.core.resources.IMarker reportInfo(org.eclipse.core.resources.IResource resource, java.lang.String msg, int lineNumber, int charStart, int charEnd) throws org.eclipse.core.runtime.CoreException, java.lang.NullPointerException
resource
- the resourcemsg
- the message to displaylineNumber
- the line to select (or 0)charStart
- the start of selection (or 0)charEnd
- the end of seletion (or 0)org.eclipse.core.runtime.CoreException
java.lang.NullPointerException