mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-154821 Watches marks broken
This commit is contained in:
+8
@@ -52,6 +52,14 @@ public class WatchNodeImpl extends XValueNodeImpl implements WatchNode {
|
||||
return myExpression;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public XValue getValueContainer() {
|
||||
XValue container = super.getValueContainer();
|
||||
XValue value = ((XWatchValue)container).myValue;
|
||||
return value != null ? value : container;
|
||||
}
|
||||
|
||||
private static class XWatchValue extends XNamedValue {
|
||||
private final XExpression myExpression;
|
||||
private final XStackFrame myStackFrame;
|
||||
|
||||
+1
-1
@@ -164,7 +164,7 @@ public class XValueNodeImpl extends XValueContainerNode<XValue> implements XValu
|
||||
myText.clear();
|
||||
XValueMarkers<?, ?> markers = myTree.getValueMarkers();
|
||||
if (markers != null) {
|
||||
ValueMarkup markup = markers.getMarkup(myValueContainer);
|
||||
ValueMarkup markup = markers.getMarkup(getValueContainer());
|
||||
if (markup != null) {
|
||||
myText.append("[" + markup.getText() + "] ", new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, markup.getColor()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user