public void toggleExtraPanelsLayout() {
        CTabItem outTab = getExtraViewTab(outputViewer);
        CTabItem logTab = getExtraViewTab(logViewer);
        CTabItem varTab = getExtraViewTab(variablesViewer);
        if (outTab != null) outTab.dispose();
        if (logTab != null) logTab.dispose();
        if (varTab != null) varTab.dispose();

        IPreferenceStore preferenceStore = getPreferenceStore();
        String epLocation = getExtraPanelsLocation();
        if (SQLPreferenceConstants.LOCATION_RESULTS.equals(epLocation)) {
            epLocation = SQLPreferenceConstants.LOCATION_RIGHT;
        } else {
            epLocation = SQLPreferenceConstants.LOCATION_RESULTS;
        }
        preferenceStore.setValue(SQLPreferenceConstants.EXTRA_PANEL_LOCATION, epLocation);

        createExtraViewControls();

        if (outTab != null) showOutputPanel(true);
        if (logTab != null) showExecutionLogPanel(true);
        if (varTab != null) showVariablesPanel(true);
    }
Changes mode of showing result for script execution - multiple results per tab or one tab per result.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java