public void showVariablesPanel(@Nullable Boolean show) {
        showExtraView(
            SQLEditorCommands.CMD_SQL_SHOW_VARIABLES,
            SQLEditorMessages.editors_sql_variables,
            SQLEditorMessages.editors_sql_variables_tip,
            IMG_VARIABLES,
            variablesViewer,
            null,
            show);
        UIUtils.asyncExec(() -> variablesViewer.refreshVariables());
    }
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