use of com.intellij.ui.tabs.TabInfo in project intellij-community by JetBrains.
the class PyDataView method closeTabs.
public void closeTabs(Predicate<PyFrameAccessor> ifClose) {
List<TabInfo> tabsToRemove = new ArrayList<>();
for (TabInfo info : myTabs.getTabs()) {
if (ifClose.test(getPanel(info).getFrameAccessor())) {
tabsToRemove.add(info);
}
}
ApplicationManager.getApplication().invokeLater(() -> {
for (TabInfo info : tabsToRemove) {
myTabs.removeTab(info);
}
});
}
Aggregations