XDebugger: root node in Evaluate dialog renamed 'result =' to save space for value

This commit is contained in:
Anton Makeev
2012-07-12 14:23:55 +02:00
parent 0f2c21ee90
commit b44b66fdde
2 changed files with 5 additions and 2 deletions
@@ -53,6 +53,7 @@ dialog.title.evaluate.code.fragment=Evaluate Code Fragment
button.text.code.fragment.mode=Code Fragment &Mode
button.text.expression.mode=Expression &Mode
xdebugger.label.text.code.fragment=Code fragment:
xdebugger.evaluate.result=result
xdebugger.popup.value.tree.set.root.action.tooltip=Set As Root
@@ -15,6 +15,8 @@
*/
package com.intellij.xdebugger.impl.ui.tree.nodes;
import com.intellij.util.ui.UIUtil;
import com.intellij.xdebugger.XDebuggerBundle;
import com.intellij.xdebugger.frame.XCompositeNode;
import com.intellij.xdebugger.frame.XValue;
import com.intellij.xdebugger.frame.XValueChildrenList;
@@ -44,10 +46,10 @@ public class EvaluatingExpressionRootNode extends XValueContainerNode<Evaluating
}
public void computeChildren(@NotNull final XCompositeNode node) {
final String resultName = myDialog.getExpression();
myDialog.startEvaluation(new XEvaluationCallbackBase() {
public void evaluated(@NotNull final XValue result) {
node.addChildren(XValueChildrenList.singleton(resultName, result), true);
String name = UIUtil.removeMnemonic(XDebuggerBundle.message("xdebugger.evaluate.result"));
node.addChildren(XValueChildrenList.singleton(name, result), true);
}
public void errorOccurred(@NotNull final String errorMessage) {