|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.eclipse.jdt.ui.EscjavaMarker
public class EscjavaMarker
This class manages a new type of marker for Esc/Java2 warnings.
Field Summary | |
---|---|
static java.lang.String |
ESCJAVA_MARKER_ID
Deprecated. The id that is also used in plugin.xml. |
static java.lang.String |
EXTRA_INFO
Deprecated. The id of the marker property that holds the 'associated declaration' information. |
Constructor Summary | |
---|---|
EscjavaMarker()
Deprecated. |
Method Summary | |
---|---|
static void |
addMarkerInfo(java.lang.String filename,
int line,
int cpos)
Deprecated. Adds extra information to the most recently created marker |
static void |
clearMarkers(java.util.Collection c)
Deprecated. Clears all the markers for the resources in the Collection; does this within a ResourcesPlugin batch operation |
static void |
clearMarkers(IResource r)
Deprecated. A callback called when the set of markers should be cleared. |
void |
escjavaFailed(IResource resource,
java.lang.String file,
int lineNumber,
int offset,
int length,
java.lang.String errorMessage,
int severity)
Deprecated. A callback method called when a marker should be created. |
static void |
escjavaFailedX(IResource resource,
java.lang.String file,
int lineNumber,
int offset,
int length,
java.lang.String errorMessage,
int severity)
Deprecated. |
static java.util.List |
getExtraInfo(IMarker m)
Deprecated. Returns the extra information associated with a Marker. |
static IWorkspaceRoot |
getRoot()
Deprecated. |
static void |
report(org.eclipse.core.runtime.IPath errorPath,
int severity,
int loc,
int length,
java.lang.String message)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ESCJAVA_MARKER_ID
public static final java.lang.String EXTRA_INFO
Constructor Detail |
---|
public EscjavaMarker()
Method Detail |
---|
public static void report(org.eclipse.core.runtime.IPath errorPath, int severity, int loc, int length, java.lang.String message)
public void escjavaFailed(IResource resource, java.lang.String file, int lineNumber, int offset, int length, java.lang.String errorMessage, int severity)
resource
- The resource in which the error occuredfile
- The file in which the error occuredlineNumber
- The line number where the error happenedoffset
- The character position (0-based) from the beginning of the file where the error beginslength
- The number of characters to highlighterrorMessage
- A message explaining the type of errorseverity
- The severity of the error (using one of the error severity constants defined in this class)public static void escjavaFailedX(IResource resource, java.lang.String file, int lineNumber, int offset, int length, java.lang.String errorMessage, int severity)
public static void addMarkerInfo(java.lang.String filename, int line, int cpos) throws org.eclipse.core.runtime.CoreException
s
- The additional information to be added
org.eclipse.core.runtime.CoreException
public static void clearMarkers(IResource r) throws org.eclipse.core.runtime.CoreException
r
- The resource whose markers are to be cleared
org.eclipse.core.runtime.CoreException
public static void clearMarkers(java.util.Collection c) throws org.eclipse.core.runtime.CoreException
c
- A collection of IResource objects
org.eclipse.core.runtime.CoreException
public static java.util.List getExtraInfo(IMarker m) throws java.lang.Exception
m
- The marker whose infor is to be returned
java.lang.Exception
public static IWorkspaceRoot getRoot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |