This commit is contained in:
Egor.Ushakov
2017-04-18 12:55:34 +03:00
parent 625a8fce82
commit 5a7b30559b
3 changed files with 3 additions and 15 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -112,12 +112,6 @@ public abstract class DebuggerAction extends AnAction {
}
}
@Nullable
public static DebuggerStateManager getContextManager(DataContext dataContext) {
DebuggerTreePanel panel = getPanel(dataContext);
return panel == null ? null : panel.getContextManager();
}
public static boolean isContextView(AnActionEvent e) {
return DebuggerActions.EVALUATION_DIALOG_POPUP.equals(e.getPlace()) ||
DebuggerActions.FRAME_PANEL_POPUP.equals(e.getPlace()) ||
@@ -46,7 +46,6 @@ import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.extensions.Extensions;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.EditorNotifications;
@@ -337,7 +336,6 @@ public class JavaDebugProcess extends XDebugProcess {
final Content threadsContent = ui.createContent(
DebuggerContentInfo.THREADS_CONTENT, panel, XDebuggerBundle.message("debugger.session.tab.threads.title"),
AllIcons.Debugger.Threads, null);
Disposer.register(threadsContent, panel);
threadsContent.setCloseable(false);
ui.addContent(threadsContent, 0, PlaceInGrid.left, true);
ui.addListener(new ContentManagerAdapter() {
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,11 +41,7 @@ public abstract class UpdatableDebuggerView extends JPanel implements DebuggerVi
myProject = project;
myStateManager = stateManager;
final DebuggerContextListener contextListener = new DebuggerContextListener() {
public void changeEvent(@NotNull DebuggerContextImpl newContext, DebuggerSession.Event event) {
UpdatableDebuggerView.this.changeEvent(newContext, event);
}
};
final DebuggerContextListener contextListener = this::changeEvent;
myStateManager.addListener(contextListener);
registerDisposable(new Disposable() {