public abstract class XDebugAbstractValue extends XDebugElement implements IValue {
private IVariable[] fVariables;
- protected String fValueString;
+ private String fValueString;
private String fTypeName;
private boolean fhasChanged;
public boolean supportsValueModification() {
return false;
}
+
+ public void setValueString(String valueString) {
+ fValueString = valueString;
+ }
}
\ No newline at end of file
public void renderValueString(String data) throws DebugException {
if (data.equals("")) {
- fValueString = "empty";
+ setValueString("empty")/*fValueString = "empty"*/;
} else {
if ("array".equals(getReferenceTypeName())) {
- fValueString = "array";
+ setValueString("array")/*fValueString = "array"*/;
} else {
- fValueString = data;
+ setValueString(data)/*fValueString = data*/;
}
}
}
} catch (NumberFormatException e) {
data=data.toLowerCase();
if (data.equals("true") || data.equals("false"))
- fValueString=data;
+ setValueString(data)/*fValueString=data*/;
else
- fValueString="not defined";
+ setValueString("not defined")/*fValueString="not defined"*/;
}
if (value==0)
- fValueString="false";
+ setValueString("false")/*fValueString="false"*/;
else if (value==1)
- fValueString="true";
+ setValueString("false")/*fValueString="true"*/;
else
- fValueString="not defined";
+ setValueString("not defined")/*fValueString="not defined"*/;
}
public boolean verifyValue(String expression) {
}
public void renderValueString(String data) {
- fValueString = data;
+ setValueString(data)/*fValueString = data*/;
}
public boolean verifyValue(String expression) {
}
public void renderValueString(String dataString) {
- fValueString = dataString;
+ setValueString(dataString)/*fValueString = dataString*/;
}
public boolean verifyValue(String expression) {
}
public void renderValueString(String data) {
- fValueString = data;
+ setValueString(data)/*fValueString = data*/;
}
public boolean verifyValue(String expression) {
}
public void renderValueString(String data) {
- fValueString = "\"" + data + "\"";
+ setValueString("\"" + data + "\"")/*fValueString = "\"" + data + "\""*/;
}
public boolean supportsValueModification() {
}
public void renderValueString(String data) {
- fValueString = "\"" + data + "\"";
+ setValueString("\"" + data + "\"")/*fValueString = "\"" + data + "\""*/;
}
public boolean supportsValueModification() {
}
public void renderValueString(String data) {
- fValueString = "uninitialized";
+ setValueString("uninitialized")/*fValueString = "uninitialized"*/;
}
public boolean verifyValue(String expression) {
* @see org.eclipse.debug.core.model.IVariable#getName()
*/
public String getName() throws DebugException {
- /*if (fFullName.endsWith("]"))
- return fFullName.substring(fFullName.lastIndexOf('['));
- else*/
- return fName;
+ return fName;
}
/* (non-Javadoc)
return false;
}
- /**
- * Returns the stack frame owning this variable.
- *
- * @return the stack frame owning this variable
- */
- /*protected XDebugStackFrame getStackFrame() {
- return fFrame;
- }*/
-
public String getValueString() throws DebugException {
return fValue.getValueString();
}