mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] Translated LocatableEventRequestor.java to Kotlin
GitOrigin-RevId: 613b9909c3c3c97ebc0fd5959c304f2eab5100d9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a7b7778bf7
commit
fbeb351d2e
+12
-22
@@ -1,31 +1,21 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.debugger.engine.requests;
|
||||
package com.intellij.debugger.engine.requests
|
||||
|
||||
import com.intellij.debugger.engine.events.SuspendContextCommandImpl;
|
||||
import com.intellij.openapi.util.NlsContexts;
|
||||
import com.sun.jdi.event.LocatableEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import com.intellij.debugger.engine.events.SuspendContextCommandImpl
|
||||
import com.intellij.openapi.util.NlsContexts
|
||||
import com.sun.jdi.event.LocatableEvent
|
||||
|
||||
public interface LocatableEventRequestor extends SuspendingRequestor {
|
||||
interface LocatableEventRequestor : SuspendingRequestor {
|
||||
/**
|
||||
* @return true if request was hit by the event, false otherwise
|
||||
* @return true if the request was hit by the event, false otherwise
|
||||
*/
|
||||
boolean processLocatableEvent(@NotNull SuspendContextCommandImpl action, LocatableEvent event) throws EventProcessingException;
|
||||
@Throws(EventProcessingException::class)
|
||||
fun processLocatableEvent(action: SuspendContextCommandImpl, event: LocatableEvent?): Boolean
|
||||
|
||||
default boolean shouldIgnoreThreadFiltering() {
|
||||
return false;
|
||||
fun shouldIgnoreThreadFiltering(): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
class EventProcessingException extends Exception {
|
||||
private final @NlsContexts.DialogTitle String myTitle;
|
||||
|
||||
public EventProcessingException(@NlsContexts.DialogTitle String title, String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
myTitle = title;
|
||||
}
|
||||
|
||||
public @NlsContexts.DialogTitle String getTitle() {
|
||||
return myTitle;
|
||||
}
|
||||
}
|
||||
class EventProcessingException(val title: @NlsContexts.DialogTitle String, message: String, cause: Throwable)
|
||||
: Exception(message, cause)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user