public interface ICModelStatus
extends org.eclipse.core.runtime.IStatus
CModelException
objects to indicate what went
wrong.
C model status object are distinguished by their plug-in id:
getPlugin
returns "org.eclipse.cdt.core"
.
getCode
returns one of the status codes declared in
ICModelStatusConstants
.
A C model status may also carry additional information (that is, in
addition to the information defined in IStatus
):
IStatus
,
ICModelStatusConstants
Modifier and Type | Method and Description |
---|---|
boolean |
doesNotExist()
Returns whether this status indicates that a C model element does not exist.
|
ICElement[] |
getElements()
Returns any C 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.
|
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 . |
String |
getString()
Returns the string associated with the failure (see specification
of the status code), or
null if no string is related to this
particular status code. |
ICElement[] getElements()
ICModelStatusConstants
org.eclipse.core.runtime.IPath getPath()
null
if the failure is not
one of DEVICE_PATH
, INVALID_PATH
,
PATH_OUTSIDE_PROJECT
, or RELATIVE_PATH
.null
if noneICModelStatusConstants.DEVICE_PATH
,
ICModelStatusConstants.INVALID_PATH
,
ICModelStatusConstants.PATH_OUTSIDE_PROJECT
,
ICModelStatusConstants.RELATIVE_PATH
String getString()
null
if no string is related to this
particular status code.null
if noneICModelStatusConstants
boolean doesNotExist()
getCode() == ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST
.true
if the status code indicates that a C model
element does not existICModelStatusConstants.ELEMENT_DOES_NOT_EXIST
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.