public interface IJavaModelStatus extends IStatus
JavaModelException
objects to indicate what went
wrong.
Java model status object are distinguished by their plug-in id:
getPlugin
returns "org.eclipse.jdt.core"
.
getCode
returns one of the status codes declared in
IJavaModelStatusConstants
.
A Java model status may also carry additional information (that is, in
addition to the information defined in IStatus
):
IStatus
,
IJavaModelStatusConstants
Modifier and Type | Method and Description |
---|---|
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.
|
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 . |
String |
getString()
Deprecated.
Use
IStatus.getMessage() instead |
boolean |
isDoesNotExist()
Returns whether this status indicates that a Java model element does not exist.
|
getChildren, getCode, getException, getMessage, getPlugin, getSeverity, isMultiStatus, isOK, matches
IJavaElement[] getElements()
IJavaModelStatusConstants
IPath getPath()
null
if the failure is not
one of DEVICE_PATH
, INVALID_PATH
,
PATH_OUTSIDE_PROJECT
, or RELATIVE_PATH
.null
if noneIJavaModelStatusConstants.DEVICE_PATH
,
IJavaModelStatusConstants.INVALID_PATH
,
IJavaModelStatusConstants.PATH_OUTSIDE_PROJECT
,
IJavaModelStatusConstants.RELATIVE_PATH
String getString()
IStatus.getMessage()
insteadnull
if no string is related to this
particular status code.null
if noneIJavaModelStatusConstants
boolean isDoesNotExist()
getCode() == IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST
.true
if the status code indicates that a Java model
element does not existIJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.