mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
read action
This commit is contained in:
@@ -194,8 +194,14 @@ public class ValueHint extends AbstractValueHint {
|
||||
public void threadAction() {
|
||||
descriptor.setRenderer(debugProcess.getAutoRenderer(descriptor));
|
||||
final InspectDebuggerTree tree = getInspectTree(descriptor);
|
||||
showTreePopup(tree, debuggerContext, myCurrentExpression.getText(),
|
||||
new ValueHintTreeComponent(ValueHint.this, tree, myCurrentExpression.getText()));
|
||||
final String expressionText = ApplicationManager.getApplication().runReadAction(new Computable<String>() {
|
||||
@Override
|
||||
public String compute() {
|
||||
return myCurrentExpression.getText();
|
||||
}
|
||||
});
|
||||
showTreePopup(tree, debuggerContext, expressionText,
|
||||
new ValueHintTreeComponent(ValueHint.this, tree, expressionText));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user