use of com.intellij.ui.docking.DockContainer in project intellij-community by JetBrains.
the class FileEditorManagerImpl method getSplittersFor.
@Override
public EditorsSplitters getSplittersFor(Component c) {
EditorsSplitters splitters = null;
DockContainer dockContainer = myDockManager.getContainerFor(c);
if (dockContainer instanceof DockableEditorTabbedContainer) {
splitters = ((DockableEditorTabbedContainer) dockContainer).getSplitters();
}
if (splitters == null) {
splitters = getMainSplitters();
}
return splitters;
}
use of com.intellij.ui.docking.DockContainer in project intellij-community by JetBrains.
the class OpenEditorsContextProvider method clearContext.
@Override
public void clearContext() {
if (myFileEditorManager != null) {
myFileEditorManager.closeAllFiles();
myFileEditorManager.getMainSplitters().clear();
}
for (DockContainer container : myDockManager.getContainers()) {
if (container instanceof DockableEditorTabbedContainer) {
container.closeAll();
}
}
}
Aggregations