Search in sources :

Example 1 with PyFrameAccessor

use of com.jetbrains.python.debugger.PyFrameAccessor in project intellij-community by JetBrains.

the class PyDataView method updateTabs.

public void updateTabs(@NotNull ProcessHandler handler) {
    saveSelectedInfo();
    for (TabInfo info : myTabs.getTabs()) {
        PyDataViewerPanel panel = getPanel(info);
        PyFrameAccessor accessor = panel.getFrameAccessor();
        if (!(accessor instanceof PyDebugProcess)) {
            continue;
        }
        boolean shouldBeShown = Comparing.equal(handler, ((PyDebugProcess) accessor).getProcessHandler());
        info.setHidden(!shouldBeShown);
    }
    restoreSelectedInfo(handler);
    if (myTabs.getSelectedInfo() == null) {
        PyFrameAccessor accessor = getFrameAccessor(handler);
        if (accessor != null) {
            addTab(accessor);
        }
    }
}
Also used : PyFrameAccessor(com.jetbrains.python.debugger.PyFrameAccessor) TabInfo(com.intellij.ui.tabs.TabInfo) PyDebugProcess(com.jetbrains.python.debugger.PyDebugProcess)

Aggregations

TabInfo (com.intellij.ui.tabs.TabInfo)1 PyDebugProcess (com.jetbrains.python.debugger.PyDebugProcess)1 PyFrameAccessor (com.jetbrains.python.debugger.PyFrameAccessor)1