public void toggleResultPanel(boolean switchFocus, boolean createQueryProcessor) {
        if (isHideQueryText()) {
            return;
        }
        UIUtils.syncExec(() -> {
            if (resultsSash.getMaximizedControl() == null) {
                resultsSash.setMaximizedControl(sqlEditorPanel);
                switchFocus(false);
            } else {
                // Show both editor and results
                // Check for existing query processors (maybe all result tabs were closed)
                if (resultTabs.getItemCount() == 0 && createQueryProcessor) {
                    createQueryProcessor(true, true, true);
                }

                resultsSash.setMaximizedControl(null);

                if (switchFocus) {
                    switchFocus(true);
                }
            }
        });
    }
Return true if there is an active tab, and its container is pinned
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java