@Override
    public void preferenceChange(PreferenceChangeEvent event) {
        switch (event.getProperty()) {
            case ModelPreferences.SCRIPT_STATEMENT_DELIMITER:
            case ModelPreferences.SCRIPT_IGNORE_NATIVE_DELIMITER:
            case ModelPreferences.SCRIPT_STATEMENT_DELIMITER_BLANK:
            case ModelPreferences.SQL_PARAMETERS_ENABLED:
            case ModelPreferences.SQL_ANONYMOUS_PARAMETERS_MARK:
            case ModelPreferences.SQL_ANONYMOUS_PARAMETERS_ENABLED:
            case ModelPreferences.SQL_VARIABLES_ENABLED:
            case ModelPreferences.SQL_NAMED_PARAMETERS_PREFIX:
            case ModelPreferences.SQL_CONTROL_COMMAND_PREFIX:
                reloadSyntaxRules();
                return;
            case SQLPreferenceConstants.RESULT_SET_ORIENTATION:
                updateResultSetOrientation();
                return;
            case SQLPreferenceConstants.EDITOR_SEPARATE_CONNECTION: {
                // Save current datasource (we want to keep it here)
                DBPDataSource dataSource = curDataSource;
                releaseExecutionContext();
                // Restore cur data source (as it is reset in releaseExecutionContext)
                curDataSource = dataSource;
                if (dataSource != null && SQLEditorUtils.isOpenSeparateConnection(dataSource.getContainer())) {
                    initSeparateConnection(dataSource, null, false);
                }
                return;
            }
            case SQLPreferenceConstants.SCRIPT_TITLE_PATTERN:
                setPartName(getEditorName());
                return;
            case SQLPreferenceConstants.MULTIPLE_RESULTS_PER_TAB: {
                updateMultipleResultsPerTabToolItem();
                return;
            }
        }

        UIUtils.asyncExec(() -> {
            if (topBarMan != null) {
                topBarMan.update(true);
            }
            this.updateMultipleResultsPerTabToolItem();
        });
        this.setCompletionContext(new SQLEditorCompletionContext(this));
        fireDataSourceChanged(event);
        super.preferenceChange(event);
    }
Build and update icon and title
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java