mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
erase types to avoid red code caused by kotlin
This commit is contained in:
@@ -34,7 +34,7 @@ public abstract class VariablesHost<VALUE_MANAGER extends ValueManager> {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Promise<List<Variable>> load(@NotNull VariablesHost host) {
|
||||
public Promise load(@NotNull VariablesHost host) {
|
||||
return host.valueManager.isObsolete() ? ValueManager.Companion.reject() : host.load();
|
||||
}
|
||||
};
|
||||
|
||||
+5
-5
@@ -133,11 +133,11 @@ public class XBreakpointUtil {
|
||||
* - if folded, checks if line breakpoints could be toggled inside folded text
|
||||
*/
|
||||
@NotNull
|
||||
public static Promise<XLineBreakpoint> toggleLineBreakpoint(@NotNull Project project,
|
||||
@NotNull XSourcePosition position,
|
||||
@Nullable Editor editor,
|
||||
boolean temporary,
|
||||
boolean moveCarret) {
|
||||
public static Promise toggleLineBreakpoint(@NotNull Project project,
|
||||
@NotNull XSourcePosition position,
|
||||
@Nullable Editor editor,
|
||||
boolean temporary,
|
||||
boolean moveCarret) {
|
||||
int lineStart = position.getLine();
|
||||
VirtualFile file = position.getFile();
|
||||
// for folded text check each line and find out type with the biggest priority
|
||||
|
||||
+4
-2
@@ -52,10 +52,12 @@ import com.intellij.util.ui.update.Update;
|
||||
import com.intellij.xdebugger.XDebuggerManager;
|
||||
import com.intellij.xdebugger.breakpoints.SuspendPolicy;
|
||||
import com.intellij.xdebugger.breakpoints.XBreakpoint;
|
||||
import com.intellij.xdebugger.breakpoints.XLineBreakpoint;
|
||||
import com.intellij.xdebugger.impl.XSourcePositionImpl;
|
||||
import com.intellij.xdebugger.impl.ui.DebuggerUIUtil;
|
||||
import gnu.trove.TIntHashSet;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.concurrency.Promise;
|
||||
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.util.Collection;
|
||||
@@ -280,8 +282,8 @@ public class XLineBreakpointManager {
|
||||
if (line >= 0 && line < document.getLineCount() && file != null) {
|
||||
ActionManagerEx.getInstanceEx().fireBeforeActionPerformed(IdeActions.ACTION_TOGGLE_LINE_BREAKPOINT, e.getMouseEvent());
|
||||
|
||||
XBreakpointUtil
|
||||
.toggleLineBreakpoint(myProject, XSourcePositionImpl.create(file, line), editor, mouseEvent.isAltDown(), false)
|
||||
final Promise<XLineBreakpoint> lineBreakpoint = XBreakpointUtil.toggleLineBreakpoint(myProject, XSourcePositionImpl.create(file, line), editor, mouseEvent.isAltDown(), false);
|
||||
lineBreakpoint
|
||||
.done(breakpoint -> {
|
||||
if (!mouseEvent.isAltDown() && mouseEvent.isShiftDown() && breakpoint != null) {
|
||||
breakpoint.setSuspendPolicy(SuspendPolicy.NONE);
|
||||
|
||||
Reference in New Issue
Block a user