mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
addressed backward compatibility issues
This commit is contained in:
parent
6e30f63572
commit
f3fad52d6e
2 changed files with 16 additions and 12 deletions
|
@ -376,11 +376,15 @@ public class SyncVariableDataAccess {
|
||||||
private String fFormatId;
|
private String fFormatId;
|
||||||
private boolean fEditable;
|
private boolean fEditable;
|
||||||
|
|
||||||
|
public GetFormattedValueValueQuery(IFormattedDataDMContext dmc, String formatId) {
|
||||||
|
this(dmc, formatId, false);
|
||||||
|
}
|
||||||
|
|
||||||
public GetFormattedValueValueQuery(IFormattedDataDMContext dmc, String formatId, boolean editable) {
|
public GetFormattedValueValueQuery(IFormattedDataDMContext dmc, String formatId, boolean editable) {
|
||||||
super();
|
super();
|
||||||
fDmc = dmc;
|
fDmc = dmc;
|
||||||
fFormatId = formatId;
|
fFormatId = formatId;
|
||||||
fEditable = editable;
|
fEditable = editable;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -430,7 +434,7 @@ public class SyncVariableDataAccess {
|
||||||
return getValue(element, formatId, true);
|
return getValue(element, formatId, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getValue(Object element, String formatId, boolean editable) {
|
private String getValue(Object element, String formatId, boolean editable) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the DMC and the session. If element is not an register DMC, or
|
* Get the DMC and the session. If element is not an register DMC, or
|
||||||
|
|
|
@ -117,21 +117,21 @@ public interface IFormattedValues extends IDsfService {
|
||||||
private String fEditableValue;
|
private String fEditableValue;
|
||||||
|
|
||||||
public FormattedValueDMData(String value) {
|
public FormattedValueDMData(String value) {
|
||||||
fValue = value;
|
this(value, value);
|
||||||
fEditableValue = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFormattedValue() {
|
|
||||||
return fValue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 2.1
|
||||||
*/
|
*/
|
||||||
public void setEditableValue(String editableValue) {
|
public FormattedValueDMData(String value, String editableValue) {
|
||||||
|
fValue = value;
|
||||||
fEditableValue = editableValue;
|
fEditableValue = editableValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getFormattedValue() {
|
||||||
|
return fValue;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.1
|
* @since 2.1
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue