static FeatureSwitchConfigurations() { configurations = ConfigurationProperty.Create( "MonoDevelop.FeatureSwitchAddin.Configuration", new Properties() ); properties = configurations.Value; }
public ThemeConfigurationProperty(string propertyName, T defaultLightValue, T defaultDarkValue, string oldName = null) { lightConfiguration = ConfigurationProperty.Create <T> (propertyName, defaultLightValue, oldName); darkConfiguration = ConfigurationProperty.Create <T> (propertyName + "-Dark", defaultDarkValue, oldName + "-Dark"); lightConfiguration.Changed += (s, e) => OnChanged(); darkConfiguration.Changed += (s, e) => OnChanged(); MonoDevelop.Ide.Gui.Styles.Changed += (sender, e) => OnChanged(); }
DefaultSourceEditorOptions(TextStylePolicy currentPolicy) { wordNavigationStyle = ConfigurationProperty.Create("WordNavigationStyle", WordNavigationStyle.Windows); UpdateStylePolicy(currentPolicy); FontService.RegisterFontChangedCallback("Editor", UpdateFont); FontService.RegisterFontChangedCallback("MessageBubbles", UpdateFont); IdeApp.Preferences.ColorScheme.Changed += OnColorSchemeChanged; }
DefaultSourceEditorOptions(TextStylePolicy currentPolicy) { wordNavigationStyle = ConfigurationProperty.Create("WordNavigationStyle", WordNavigationStyle.Windows); UpdateStylePolicy(currentPolicy); Runtime.ServiceProvider.WhenServiceInitialized <FontService> (s => { s.RegisterFontChangedCallback("Editor", UpdateFont); s.RegisterFontChangedCallback("MessageBubbles", UpdateFont); }); IdeApp.Preferences.ColorScheme.Changed += OnColorSchemeChanged; IdeApp.Preferences.Editor.FollowCodingConventions.Changed += OnFollowCodingConventionsChanged; }
DefaultSourceEditorOptions(TextStylePolicy currentPolicy) { WordNavigationStyle defaultWordNavigation = WordNavigationStyle.Unix; if (Platform.IsWindows) { defaultWordNavigation = WordNavigationStyle.Windows; } wordNavigationStyle = ConfigurationProperty.Create("WordNavigationStyle", defaultWordNavigation); UpdateStylePolicy(currentPolicy); FontService.RegisterFontChangedCallback("Editor", UpdateFont); FontService.RegisterFontChangedCallback("MessageBubbles", UpdateFont); }
ConfigurationProperty <T> Create <T> (string name, string editorOptionId, T defaultValue) { return(Map(name, editorOptionId, ConfigurationProperty.Create(name, defaultValue))); }
static CustomToolServiceExtensions() { RunCustomToolOnBuildEnabled = ConfigurationProperty.Create <bool> ("RunCustomTool.RunCustomToolOnBuildEnabled", true); updateMethod = FindUpdateMethod(); }