mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[225610] Removed the IExpressionDMData.getStringValue() method.
This commit is contained in:
parent
07b2d9a32c
commit
723b0df731
3 changed files with 9 additions and 9 deletions
|
@ -386,6 +386,7 @@ public class VariableVMNode extends AbstractExpressionVMNode
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fill the label/column with the properly formatted data value.
|
// Fill the label/column with the properly formatted data value.
|
||||||
|
/* Commented out, to be replaced. See bug 225612.
|
||||||
StringBuffer stringValueBuf = new StringBuffer(getData().getFormattedValue());
|
StringBuffer stringValueBuf = new StringBuffer(getData().getFormattedValue());
|
||||||
String stringValue = expressionDMData.getStringValue();
|
String stringValue = expressionDMData.getStringValue();
|
||||||
if(stringValue != null && stringValue.length() > 0)
|
if(stringValue != null && stringValue.length() > 0)
|
||||||
|
@ -393,7 +394,8 @@ public class VariableVMNode extends AbstractExpressionVMNode
|
||||||
stringValueBuf.append(" ");
|
stringValueBuf.append(" ");
|
||||||
stringValueBuf.append(stringValue.length() > MAX_STRING_VALUE_LENGTH ? stringValue.substring(0, MAX_STRING_VALUE_LENGTH) : stringValue);
|
stringValueBuf.append(stringValue.length() > MAX_STRING_VALUE_LENGTH ? stringValue.substring(0, MAX_STRING_VALUE_LENGTH) : stringValue);
|
||||||
}
|
}
|
||||||
update.setLabel(stringValueBuf.toString(), labelIndex);
|
update.setLabel(stringValueBuf.toString(), labelIndex);*/
|
||||||
|
update.setLabel(getData().getFormattedValue(), labelIndex);
|
||||||
|
|
||||||
// Color based on change history
|
// Color based on change history
|
||||||
FormattedValueDMData oldData = (FormattedValueDMData) getDMVMProvider().getArchivedModelData(
|
FormattedValueDMData oldData = (FormattedValueDMData) getDMVMProvider().getArchivedModelData(
|
||||||
|
@ -401,11 +403,13 @@ public class VariableVMNode extends AbstractExpressionVMNode
|
||||||
|
|
||||||
IExpressionDMData oldDMData = (IExpressionDMData) getDMVMProvider().getArchivedModelData(
|
IExpressionDMData oldDMData = (IExpressionDMData) getDMVMProvider().getArchivedModelData(
|
||||||
VariableVMNode.this, update, dmc);
|
VariableVMNode.this, update, dmc);
|
||||||
String oldStringValue = oldDMData == null ? null : oldDMData.getStringValue();
|
/* Commented out, to be replaced. See bug 225612.
|
||||||
|
String oldStringValue = oldDMData == null ? null : oldDMData.getStringValue();*/
|
||||||
|
|
||||||
// highlight the value if either the value (address) has changed or the string (memory at the value) has changed
|
// highlight the value if either the value (address) has changed or the string (memory at the value) has changed
|
||||||
if ((oldData != null && !oldData.getFormattedValue().equals(getData().getFormattedValue()))
|
if ((oldData != null && !oldData.getFormattedValue().equals(getData().getFormattedValue()))) {
|
||||||
|| (oldStringValue != null && !oldStringValue.equals(stringValue))) {
|
/* Commented out, to be replaced. See bug 225612.
|
||||||
|
|| (oldStringValue != null && !oldStringValue.equals(stringValue))) {*/
|
||||||
update.setBackground(
|
update.setBackground(
|
||||||
DebugUIPlugin.getPreferenceColor(
|
DebugUIPlugin.getPreferenceColor(
|
||||||
IInternalDebugUIConstants.PREF_CHANGED_VALUE_BACKGROUND).getRGB(),
|
IInternalDebugUIConstants.PREF_CHANGED_VALUE_BACKGROUND).getRGB(),
|
||||||
|
|
|
@ -106,11 +106,6 @@ public interface IExpressions extends IFormattedValues {
|
||||||
*/
|
*/
|
||||||
String getTypeId();
|
String getTypeId();
|
||||||
|
|
||||||
/**
|
|
||||||
* @return A string containing the value of the expression as returned by the debugger backend.
|
|
||||||
*/
|
|
||||||
String getStringValue();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return A Map in which the keys are strings that are the names of enumerators in the enumeration
|
* @return A Map in which the keys are strings that are the names of enumerators in the enumeration
|
||||||
* that is the value of this expression and the values are the integer values of the
|
* that is the value of this expression and the values are the integer values of the
|
||||||
|
|
|
@ -33,6 +33,7 @@ public interface IFormattedValues extends IDMService {
|
||||||
public final static String NATURAL_FORMAT = "NATURAL.Format" ; //$NON-NLS-1$
|
public final static String NATURAL_FORMAT = "NATURAL.Format" ; //$NON-NLS-1$
|
||||||
public final static String BINARY_FORMAT = "BINARY.Format" ; //$NON-NLS-1$
|
public final static String BINARY_FORMAT = "BINARY.Format" ; //$NON-NLS-1$
|
||||||
public final static String DECIMAL_FORMAT = "DECIMAL.Format" ; //$NON-NLS-1$
|
public final static String DECIMAL_FORMAT = "DECIMAL.Format" ; //$NON-NLS-1$
|
||||||
|
public final static String STRING_FORMAT = "STRING.Format" ; //$NON-NLS-1$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the formats that the given data is available in.
|
* Retrieves the formats that the given data is available in.
|
||||||
|
|
Loading…
Add table
Reference in a new issue