CIDR:Debugger: correctly inferring expression type + small OCType refactoring

This commit is contained in:
Anton Makeev
2011-01-26 12:02:01 +01:00
parent 4d609d8448
commit 89029f4cb7
3 changed files with 11 additions and 1 deletions
@@ -30,11 +30,12 @@ import javax.swing.*;
* @author nik
*/
public interface XValueNode extends Obsolescent {
void setPresentation(@Nullable Icon icon, @NonNls @Nullable String type, @NonNls @NotNull String value, boolean hasChildren);
void setPresentation(@Nullable Icon icon, @NonNls @Nullable String type, @NonNls @NotNull String separator, @NonNls @NotNull String value, boolean hasChildren);
void errorOccurred(@NotNull String message, @Nullable String type);
/**
* If string representation of the value is too long to show in the tree pass truncated value to {@link #setPresentation(javax.swing.Icon, String, String, boolean)}
* method and call this method to provide full value.
@@ -104,6 +104,11 @@ public class XValueHint extends AbstractValueHint {
setPresentation(icon, type, separator, value, hasChildren);
}
@Override
public void errorOccurred(@NotNull String message, @Nullable String type) {
setPresentation(XDebuggerUIConstants.ERROR_MESSAGE_ICON, type, message, false);
}
public void setFullValueEvaluator(@NotNull XFullValueEvaluator fullValueEvaluator) {
//todo[nik] implement?
}
@@ -96,6 +96,10 @@ public class XValueNodeImpl extends XValueContainerNode<XValue> implements XValu
});
}
public void errorOccurred(@NotNull String message, @Nullable String type) {
setPresentation(XDebuggerUIConstants.ERROR_MESSAGE_ICON, type, message, false);
}
public void setFullValueEvaluator(@NotNull final XFullValueEvaluator fullValueEvaluator) {
DebuggerUIUtil.invokeOnEventDispatch(new Runnable() {
public void run() {