static FeatureSwitchConfigurations()
        {
            configurations = ConfigurationProperty.Create(
                "MonoDevelop.FeatureSwitchAddin.Configuration",
                new Properties()
                );

            properties = configurations.Value;
        }
コード例 #2
0
            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();
            }
コード例 #3
0
        DefaultSourceEditorOptions(TextStylePolicy currentPolicy)
        {
            wordNavigationStyle = ConfigurationProperty.Create("WordNavigationStyle", WordNavigationStyle.Windows);

            UpdateStylePolicy(currentPolicy);
            FontService.RegisterFontChangedCallback("Editor", UpdateFont);
            FontService.RegisterFontChangedCallback("MessageBubbles", UpdateFont);

            IdeApp.Preferences.ColorScheme.Changed += OnColorSchemeChanged;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 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();
 }