pass value to computeSourcePosition

This commit is contained in:
Vladimir Krivosheev
2015-10-16 12:50:42 +02:00
parent a6bfe133a7
commit b98233f0fe
4 changed files with 4 additions and 7 deletions
@@ -18,7 +18,6 @@
package org.jetbrains.debugger
import com.intellij.xdebugger.evaluation.XDebuggerEvaluator
import com.intellij.xdebugger.frame.XNavigatable
import com.intellij.xdebugger.frame.XValueNode
import org.jetbrains.concurrency.Promise
import org.jetbrains.debugger.frame.CallFrameView
@@ -41,9 +40,6 @@ open class BasicDebuggerViewSupport : MemberFilter, DebuggerViewSupport {
throw UnsupportedOperationException()
}
override fun computeSourcePosition(name: String, variable: Variable, context: VariableContext, navigatable: XNavigatable) {
}
override fun getMemberFilter(context: VariableContext): Promise<MemberFilter> {
return defaultMemberFilterPromise
}
@@ -51,7 +51,8 @@ interface DebuggerViewSupport {
*/
fun canNavigateToSource(variable: Variable, context: VariableContext) = false
fun computeSourcePosition(name: String, variable: Variable, context: VariableContext, navigatable: XNavigatable)
fun computeSourcePosition(name: String, value: Value?, variable: Variable, context: VariableContext, navigatable: XNavigatable) {
}
fun computeInlineDebuggerData(name: String, variable: Variable, context: VariableContext, callback: XInlineDebuggerDataCallback) = ThreeState.UNSURE
@@ -366,7 +366,7 @@ class VariableView(name: String, private val variable: Variable, private val con
}
}
else {
viewSupport.computeSourcePosition(name, variable, context, navigatable)
viewSupport.computeSourcePosition(name, value!!, variable, context, navigatable)
}
}
@@ -50,7 +50,7 @@ class ExecutionStackImpl extends XExecutionStack {
}
@Override
public void computeStackFrames(final int firstFrameIndex, final XStackFrameContainer container) {
public final void computeStackFrames(final int firstFrameIndex, final XStackFrameContainer container) {
SuspendContext suspendContext = debugProcess.getVm().getSuspendContextManager().getContext();
// WipSuspendContextManager set context to null on resume _before_ vm.getDebugListener().resumed() call() (in any case, XFramesView can queue event to EDT), so, IDE state could be outdated compare to VM (our) state
if (suspendContext == null) {