cleanup: do not use deprecated method

This commit is contained in:
Egor.Ushakov
2017-03-27 16:11:21 +03:00
parent a7f7de045c
commit b12ba9273c
@@ -141,7 +141,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
}
@Override
public void contextAction() throws Exception {
public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception {
if (node.isObsolete()) {
return;
}
@@ -219,7 +219,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
}
@Override
public void contextAction() throws Exception {
public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception {
if (callback.isObsolete()) return;
evaluate(callback);
}
@@ -346,7 +346,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
}
@Override
public void contextAction() throws Exception {
public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception {
final XValueChildrenList children = new XValueChildrenList();
final NodeRenderer renderer = myValueDescriptor.getRenderer(myEvaluationContext.getDebugProcess());
final Ref<Integer> remainingNum = new Ref<>(0);
@@ -408,11 +408,11 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
}
evaluationContext.getManagerThread().schedule(new SuspendContextCommandImpl(command.getSuspendContext()) {
@Override
public void contextAction() throws Exception {
public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception {
if (node.isObsolete()) {
return;
}
command.contextAction();
command.contextAction(suspendContext);
}
@Override
@@ -441,7 +441,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
}
@Override
public void contextAction() throws Exception {
public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception {
ApplicationManager.getApplication().runReadAction(() -> {
SourcePosition position = SourcePositionProvider.getSourcePosition(myValueDescriptor, getProject(), getDebuggerContext(), false);
if (position != null) {
@@ -520,7 +520,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
}
@Override
public void contextAction() throws Exception {
public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception {
evaluationExpression = ApplicationManager.getApplication().runReadAction(new Computable<XExpression>() {
@Override
public XExpression compute() {