@Override
        public void handleExecuteResult(DBCExecutionResult result) {
            super.handleExecuteResult(result);
            
            if (this.viewer.getActivePresentation().getControl() instanceof Spreadsheet s) {
                UIUtils.syncExec(() -> {
                    Point spreadsheetPreferredSize = s.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
                    Point spreadsheetSize = s.getSize();
                    int desiredViewerHeight = rsvConstrainedLayout.heightHint - spreadsheetSize.y + spreadsheetPreferredSize.y;
                    if (desiredViewerHeight < rsvConstrainedLayout.heightHint) {
                        if (desiredViewerHeight < MIN_VIEWER_HEIGHT) {
                            desiredViewerHeight = MIN_VIEWER_HEIGHT;
                        }
                        rsvConstrainedLayout.heightHint = desiredViewerHeight;
                        queryProcessor.relayoutContents();
                    }
                });
            }
        }
Build and update icon and title
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java