public SQLEditorPresentationPanel showPresentationPanel(String panelID) {
        for (IContributionItem contributionItem : topBarMan.getItems()) {
            if (contributionItem instanceof ActionContributionItem) {
                IAction action = ((ActionContributionItem) contributionItem).getAction();
                if (action instanceof PresentationPanelToggleAction
                    && ((PresentationPanelToggleAction) action).panel.getId().equals(panelID)
                ) {
                    action.run();
                    return extraPresentationManager.activePresentationPanel;
                }
            }
        }
        for (IContributionItem contributionItem : bottomBarMan.getItems()) {
            if (contributionItem instanceof ActionContributionItem) {
                IAction action = ((ActionContributionItem) contributionItem).getAction();
                if (action instanceof PresentationPanelToggleAction
                    && ((PresentationPanelToggleAction) action).panel.getId().equals(panelID)
                ) {
                    action.run();
                    return extraPresentationManager.activePresentationPanel;
                }
            }
        }
        return null;
    }
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