|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.Status
org.eclipse.jdt.internal.core.JavaModelStatus
public class JavaModelStatus
IJavaModelStatus| Field Summary | |
|---|---|
static IJavaModelStatus |
VERIFIED_OK
Singleton OK object |
| Fields inherited from class org.eclipse.core.runtime.Status |
|---|
CANCEL_STATUS, OK_STATUS |
| Fields inherited from interface org.eclipse.core.runtime.IStatus |
|---|
CANCEL, ERROR, INFO, OK, WARNING |
| Constructor Summary | |
|---|---|
JavaModelStatus()
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(org.eclipse.core.runtime.CoreException coreException)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
IJavaElement element)
Constructs an Java model status with the given corresponding element. |
|
JavaModelStatus(int code,
IJavaElement[] elements)
Constructs an Java model status with the given corresponding elements. |
|
JavaModelStatus(int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path)
Constructs an Java model status with the given corresponding element and path |
|
JavaModelStatus(int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path,
java.lang.String string)
Constructs an Java model status with the given corresponding element, path and string |
|
JavaModelStatus(int code,
IJavaElement element,
java.lang.String string)
Constructs an Java model status with the given corresponding element and string |
|
JavaModelStatus(int severity,
int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path,
java.lang.String msg)
Constructs an Java model status with the given corresponding element and path |
|
JavaModelStatus(int severity,
int code,
java.lang.String string)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
org.eclipse.core.runtime.IPath path)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
java.lang.String string)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
java.lang.Throwable throwable)
Constructs an Java model status with no corresponding elements. |
|
| Method Summary | |
|---|---|
org.eclipse.core.runtime.IStatus[] |
getChildren()
|
IJavaElement[] |
getElements()
Returns any Java elements associated with the failure (see specification of the status code), or an empty array if no elements are related to this particular status code. |
java.lang.String |
getMessage()
Returns the message that is relevant to the code of this status. |
org.eclipse.core.runtime.IPath |
getPath()
Returns the path associated with the failure (see specification of the status code), or null if the failure is not
one of DEVICE_PATH, INVALID_PATH,
PATH_OUTSIDE_PROJECT, or RELATIVE_PATH. |
int |
getSeverity()
|
java.lang.String |
getString()
Deprecated. |
boolean |
isDoesNotExist()
Returns whether this status indicates that a Java model element does not exist. |
boolean |
isMultiStatus()
|
boolean |
isOK()
|
boolean |
matches(int mask)
|
static IJavaModelStatus |
newMultiStatus(IJavaModelStatus[] children)
Creates and returns a new IJavaModelStatus that is a
a multi-status status. |
java.lang.String |
toString()
Returns a printable representation of this exception for debugging purposes. |
| Methods inherited from class org.eclipse.core.runtime.Status |
|---|
getCode, getException, getPlugin |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.runtime.IStatus |
|---|
getCode, getException, getPlugin |
| Field Detail |
|---|
public static final IJavaModelStatus VERIFIED_OK
| Constructor Detail |
|---|
public JavaModelStatus()
public JavaModelStatus(int code)
public JavaModelStatus(int code,
IJavaElement[] elements)
public JavaModelStatus(int code,
java.lang.String string)
public JavaModelStatus(int severity,
int code,
java.lang.String string)
public JavaModelStatus(int code,
java.lang.Throwable throwable)
public JavaModelStatus(int code,
org.eclipse.core.runtime.IPath path)
public JavaModelStatus(int code,
IJavaElement element)
public JavaModelStatus(int code,
IJavaElement element,
java.lang.String string)
public JavaModelStatus(int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path)
public JavaModelStatus(int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path,
java.lang.String string)
public JavaModelStatus(int severity,
int code,
IJavaElement element,
org.eclipse.core.runtime.IPath path,
java.lang.String msg)
public JavaModelStatus(org.eclipse.core.runtime.CoreException coreException)
| Method Detail |
|---|
public org.eclipse.core.runtime.IStatus[] getChildren()
getChildren in interface org.eclipse.core.runtime.IStatusgetChildren in class org.eclipse.core.runtime.StatusIStatuspublic IJavaElement[] getElements()
IJavaModelStatus
getElements in interface IJavaModelStatusIJavaModelStatuspublic java.lang.String getMessage()
getMessage in interface org.eclipse.core.runtime.IStatusgetMessage in class org.eclipse.core.runtime.Statuspublic org.eclipse.core.runtime.IPath getPath()
IJavaModelStatusnull if the failure is not
one of DEVICE_PATH, INVALID_PATH,
PATH_OUTSIDE_PROJECT, or RELATIVE_PATH.
getPath in interface IResourceStatusgetPath in interface IJavaModelStatusnull if noneIJavaModelStatus.getPath()public int getSeverity()
getSeverity in interface org.eclipse.core.runtime.IStatusgetSeverity in class org.eclipse.core.runtime.StatusIStatus.getSeverity()public java.lang.String getString()
IJavaModelStatusnull if no string is related to this
particular status code.
getString in interface IJavaModelStatusnull if noneIJavaModelStatus.getString()public boolean isDoesNotExist()
IJavaModelStatusgetCode() == IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST.
isDoesNotExist in interface IJavaModelStatustrue if the status code indicates that a Java model
element does not existIJavaModelStatus.isDoesNotExist()public boolean isMultiStatus()
isMultiStatus in interface org.eclipse.core.runtime.IStatusisMultiStatus in class org.eclipse.core.runtime.StatusIStatus.isMultiStatus()public boolean isOK()
isOK in interface org.eclipse.core.runtime.IStatusisOK in class org.eclipse.core.runtime.StatusIStatus.isOK()public boolean matches(int mask)
matches in interface org.eclipse.core.runtime.IStatusmatches in class org.eclipse.core.runtime.StatusIStatus.matches(int)public static IJavaModelStatus newMultiStatus(IJavaModelStatus[] children)
IJavaModelStatus that is a
a multi-status status.
IStatus.isMultiStatus()public java.lang.String toString()
toString in class org.eclipse.core.runtime.Status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||