private void refreshContextDefaults(DBCSession session) {
            final DBCExecutionContext executionContext = getExecutionContext();
            if (executionContext != null && session != null) {
                // Refresh active object
                if (getActivePreferenceStore().getBoolean(SQLPreferenceConstants.REFRESH_DEFAULTS_AFTER_EXECUTE)) {
                    DBCExecutionContextDefaults<?, ?> contextDefaults = executionContext.getContextDefaults();
                    if (contextDefaults != null) {
                        try {
                            DBUtils.refreshContextDefaultsAndReflect(
                                session.getProgressMonitor(),
                                contextDefaults,
                                executionContext);
                        } catch (Exception e) {
                            log.debug("Error refreshing context defaults", e);
                        }
                    }
                }
            }
        }
Build and update icon and title
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java