mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
XDebugger: root node in Evaluate dialog renamed 'result =' to save space for value
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+4
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user