public class CdtVariableStatus extends org.eclipse.core.runtime.Status implements ICdtVariableStatus
TYPE_ERROR, TYPE_MACRO_NOT_STRING, TYPE_MACRO_NOT_STRINGLIST, TYPE_MACRO_REFERENCE_INCORRECT, TYPE_MACRO_UNDEFINED, TYPE_MACROS_REFERENCE_EACHOTHER
Constructor and Description |
---|
CdtVariableStatus(int severity,
int code,
String message,
Throwable exception,
String macroName,
String expression,
String referencedName) |
CdtVariableStatus(int code,
String macroName,
String expression,
String referencedName)
Creates status with the IStatus.ERROR severity and with the default message
|
CdtVariableStatus(int code,
String message,
Throwable exception,
String macroName,
String expression,
String referencedName)
Creates status with the IStatus.ERROR severity
|
Modifier and Type | Method and Description |
---|---|
protected String |
generateMessage()
generates and returns the default status message based upon then status data
|
String |
getExpression()
returns the string whose resolutinon caused caused this status creation or null if none
|
String |
getReferencedMacroName()
returns the macro name referenced in the resolution string that caused this this status creation or null if none
|
String |
getVariableName()
returns the name of the build macro whose resolution caused this status creation or null if none
|
getChildren, getCode, getException, getMessage, getPlugin, getSeverity, isMultiStatus, isOK, matches, setCode, setException, setMessage, setPlugin, setSeverity, toString
public CdtVariableStatus(int severity, int code, String message, Throwable exception, String macroName, String expression, String referencedName)
severity
- as documented in IStatus
code
- as provided by ICdtVariableStatus
.message
- message, can be null. In this case the default message will
be generated base upon the other status infoexception
- a low-level exception, or null
if not
applicablemacroName
- the name of the build macro whose resolution caused this status creation or null if noneexpression
- the string whose resolution caused this status creation or null if nonereferencedName
- the macro name referenced in the resolution string that caused this this status creation or null if nonepublic CdtVariableStatus(int code, String message, Throwable exception, String macroName, String expression, String referencedName)
code
- one of the IBuildMacroStatus.TYPE_xxx statussesmessage
- message, can be null. In this case the default message will
be generated base upon the other status infoexception
- a low-level exception, or null
if not
applicablemacroName
- the name of the build macro whose resolution caused this status creation or null if noneexpression
- the string whose resolutinon caused caused this status creation or null if nonereferencedName
- the macro name referenced in the resolution string that caused this this status creation or null if nonepublic CdtVariableStatus(int code, String macroName, String expression, String referencedName)
code
- one of the IBuildMacroStatus.TYPE_xxx statussesmacroName
- the name of the build macro whose resolution caused this status creation or null if noneexpression
- the string whose resolutinon caused caused this status creation or null if nonereferencedName
- the macro name referenced in the resolution string that caused this this status creation or null if noneprotected String generateMessage()
public String getVariableName()
ICdtVariableStatus
getVariableName
in interface ICdtVariableStatus
public String getExpression()
ICdtVariableStatus
getExpression
in interface ICdtVariableStatus
public String getReferencedMacroName()
ICdtVariableStatus
getReferencedMacroName
in interface ICdtVariableStatus
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.