Пример #1
0
        public OptionsPageGeneral()
        {
            _customToolSwitch = new CustomToolSwitch(Dte);

            EnableAnalysis              = OptionDefaultValues.EnableAnalysisDefaultValue;
            EnableSyntaxColoring        = OptionDefaultValues.EnableSyntaxColoringDefaultValue;
            EnableOutlining             = OptionDefaultValues.EnableOutliningDefaultValue;
            EnableIntelliSense          = OptionDefaultValues.EnableIntelliSenseDefaultValue;
            MaxStepInstancesSuggestions = OptionDefaultValues.MaxStepInstancesSuggestionsDefaultValue;
            EnableTableAutoFormat       = OptionDefaultValues.EnableTableAutoFormatDefaultValue;
            EnableStepMatchColoring     = OptionDefaultValues.EnableStepMatchColoringDefaultValue;
            EnableTracing     = OptionDefaultValues.EnableTracingDefaultValue;
            TracingCategories = OptionDefaultValues.TracingCategoriesDefaultValue;
            DisableRegenerateFeatureFilePopupOnConfigChange = OptionDefaultValues.DisableRegenerateFeatureFilePopupOnConfigChangeDefaultValue;
            GenerationMode = OptionDefaultValues.GenerationModeDefaultValue;
            PathToCodeBehindGeneratorExe        = OptionDefaultValues.CodeBehindFileGeneratorPath;
            CodeBehindFileGeneratorExchangePath = OptionDefaultValues.CodeBehindFileGeneratorExchangePath;
            OptOutDataCollection = OptionDefaultValues.DefaultOptOutDataCollection;
            LegacyEnableSpecFlowSingleFileGeneratorCustomTool = _customToolSwitch.IsEnabled();
            NormalizeLineBreaks      = OptionDefaultValues.NormalizeLineBreaksDefaultValue;
            LineBreaksBeforeScenario = OptionDefaultValues.DefaultLineBreaksBeforeScenario;
            LineBreaksBeforeExamples = OptionDefaultValues.DefaultLineBreaksBeforeExamples;
            UseTabsForIndent         = OptionDefaultValues.UseTabsForIndentDefaultValue;
            FeatureIndent            = OptionDefaultValues.DefaultFeatureIndent;
            ScenarioIndent           = OptionDefaultValues.DefaultScenarioIndent;
            StepIndent      = OptionDefaultValues.DefaultStepIndent;
            TableIndent     = OptionDefaultValues.DefaultTableIndent;
            MultilineIndent = OptionDefaultValues.DefaultMultilineIndent;
            ExampleIndent   = OptionDefaultValues.DefaultExampleIndent;
        }
        public OptionsPageGeneral()
        {
            _customToolSwitch = new CustomToolSwitch(Dte);

            EnableAnalysis              = OptionDefaultValues.EnableAnalysisDefaultValue;
            EnableSyntaxColoring        = OptionDefaultValues.EnableSyntaxColoringDefaultValue;
            EnableOutlining             = OptionDefaultValues.EnableOutliningDefaultValue;
            EnableIntelliSense          = OptionDefaultValues.EnableIntelliSenseDefaultValue;
            MaxStepInstancesSuggestions = OptionDefaultValues.MaxStepInstancesSuggestionsDefaultValue;
            EnableTableAutoFormat       = OptionDefaultValues.EnableTableAutoFormatDefaultValue;
            EnableStepMatchColoring     = OptionDefaultValues.EnableStepMatchColoringDefaultValue;
            EnableTracing     = OptionDefaultValues.EnableTracingDefaultValue;
            TracingCategories = OptionDefaultValues.TracingCategoriesDefaultValue;
            DisableRegenerateFeatureFilePopupOnConfigChange = OptionDefaultValues.DisableRegenerateFeatureFilePopupOnConfigChangeDefaultValue;
            GenerationMode = OptionDefaultValues.GenerationModeDefaultValue;
            PathToCodeBehindGeneratorExe        = OptionDefaultValues.CodeBehindFileGeneratorPath;
            CodeBehindFileGeneratorExchangePath = OptionDefaultValues.CodeBehindFileGeneratorExchangePath;
            OptOutDataCollection = OptionDefaultValues.DefaultOptOutDataCollection;
            LegacyEnableSpecFlowSingleFileGeneratorCustomTool = _customToolSwitch.IsEnabled();
        }