public int OnUserPreferencesChanged2(VIEWPREFERENCES2[] viewPrefs, FRAMEPREFERENCES2[] framePrefs, LANGPREFERENCES2[] langPrefs, FONTCOLORPREFERENCES2[] colorPrefs) { if (langPrefs != null && langPrefs.Length > 0 && langPrefs[0].guidLang == this._preferences.guidLang) { _preferences.IndentStyle = langPrefs[0].IndentStyle; _preferences.fAutoListMembers = langPrefs[0].fAutoListMembers; _preferences.fAutoListParams = langPrefs[0].fAutoListParams; _preferences.fHideAdvancedAutoListMembers = langPrefs[0].fHideAdvancedAutoListMembers; if (_preferences.fDropdownBar != (_preferences.fDropdownBar = langPrefs[0].fDropdownBar)) { VSGeneroCodeWindowManager.ToggleNavigationBar(_preferences.fDropdownBar != 0); } } var optionsChanged = VSGeneroPackage.Instance.AdvancedOptions4GLPage.OptionsChanged; if (optionsChanged.HasFlag(AdvancedOptions.ShowFunctionParameters) || optionsChanged.HasFlag(AdvancedOptions.IncludeAllFunctions)) { VSGeneroCodeWindowManager.RefreshNavigationBar(); VSGeneroPackage.Instance.AdvancedOptions4GLPage.SetChangesApplied(); } if (optionsChanged.HasFlag(AdvancedOptions.MajorCollapseRegions) || optionsChanged.HasFlag(AdvancedOptions.MinorCollapseRegions) || optionsChanged.HasFlag(AdvancedOptions.CustomCollapseRegions)) { // TODO: update the outliner } if (optionsChanged.HasFlag(AdvancedOptions.SemanticErrorChecking)) { // TODO: update the semantic error checker } return(VSConstants.S_OK); }
public int OnUserPreferencesChanged2(VIEWPREFERENCES2[] viewPrefs, FRAMEPREFERENCES2[] framePrefs, LANGPREFERENCES2[] langPrefs, FONTCOLORPREFERENCES2[] colorPrefs) { if (langPrefs != null && langPrefs.Length > 0 && langPrefs[0].guidLang == this._preferences.guidLang) { _preferences.IndentStyle = langPrefs[0].IndentStyle; _preferences.fAutoListMembers = langPrefs[0].fAutoListMembers; _preferences.fAutoListParams = langPrefs[0].fAutoListParams; _preferences.fHideAdvancedAutoListMembers = langPrefs[0].fHideAdvancedAutoListMembers; if (_preferences.fDropdownBar != (_preferences.fDropdownBar = langPrefs[0].fDropdownBar)) { VSGeneroCodeWindowManager.ToggleNavigationBar(_preferences.fDropdownBar != 0); } } return(VSConstants.S_OK); }
private void UpdateSettings(HashSet <string> optionsChanged) { if (optionsChanged.Contains(Genero4GLAdvancedOptions.ShowFunctionParametersSetting) || optionsChanged.Contains(Genero4GLAdvancedOptions.IncludeAllFunctionsSetting)) { VSGeneroCodeWindowManager.RefreshNavigationBar(); } if (optionsChanged.Contains(Genero4GLAdvancedOptions.MajorCollapseRegionsEnabledSetting) || optionsChanged.Contains(Genero4GLAdvancedOptions.MinorCollapseRegionsEnabledSetting) || optionsChanged.Contains(Genero4GLAdvancedOptions.CustomCollapseRegionsEnabledSetting)) { // TODO: update the outliner } if (optionsChanged.Contains(Genero4GLAdvancedOptions.SemanticErrorCheckingEnabledSetting)) { // TODO: update the semantic error checker } }