mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] IDEA-349254 Remove obsolete overload of DebuggerUtilsImpl.invokeObjectMethod
GitOrigin-RevId: 46ca61027e483c41c7721a6c72cbd2f16b26cd8d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f386cee9cc
commit
5931afd75a
@@ -556,13 +556,6 @@ public final class DebuggerUtilsImpl extends DebuggerUtilsEx {
|
||||
return evaluationContext.getDebugProcess().invokeMethod(evaluationContext, type, method, Collections.emptyList());
|
||||
}
|
||||
|
||||
public static @Nullable Value invokeObjectMethod(@NotNull EvaluationContextImpl evaluationContext,
|
||||
@NotNull ObjectReference value,
|
||||
@NotNull String methodName,
|
||||
@Nullable String signature) throws EvaluateException {
|
||||
return invokeObjectMethod(evaluationContext, value, methodName, signature, Collections.emptyList());
|
||||
}
|
||||
|
||||
public static @Nullable Value invokeObjectMethod(@NotNull EvaluationContextImpl evaluationContext,
|
||||
@NotNull ObjectReference value,
|
||||
@NotNull String methodName,
|
||||
|
||||
@@ -32,13 +32,13 @@ class FileObjectRenderer : CompoundRendererProvider() {
|
||||
override fun getFullValueEvaluator(evaluationContext: EvaluationContextImpl, valueDescriptor: ValueDescriptorImpl): XFullValueEvaluator? {
|
||||
val value = valueDescriptor.value as? ObjectReference ?: return null
|
||||
try {
|
||||
val isFile = DebuggerUtilsImpl.invokeObjectMethod(evaluationContext, value, "isFile", "()Z")
|
||||
val isFile = DebuggerUtilsImpl.invokeObjectMethod(evaluationContext, value, "isFile", "()Z", emptyList())
|
||||
if ((isFile as? BooleanValue)?.value() == true) {
|
||||
return object : JavaValue.JavaFullValueEvaluator(message("message.node.open"), evaluationContext) {
|
||||
override fun isShowValuePopup(): Boolean = false
|
||||
|
||||
override fun evaluate(callback: XFullValueEvaluationCallback) {
|
||||
val path = DebuggerUtilsImpl.invokeObjectMethod(evaluationContext, value, "getAbsolutePath", "()Ljava/lang/String;")
|
||||
val path = DebuggerUtilsImpl.invokeObjectMethod(evaluationContext, value, "getAbsolutePath", "()Ljava/lang/String;", emptyList())
|
||||
if (path is StringReference) {
|
||||
callback.evaluated("")
|
||||
val vFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(path.value()) ?: return
|
||||
|
||||
Reference in New Issue
Block a user