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);
}
}
}
Aggregations