diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-10-27 01:02:28 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-11-13 21:59:27 +0300 |
commit | 72085830ec637621a05b0a498e3d2165d0c17769 (patch) | |
tree | c57981670155534ad22792983da163ec8cc5325d /main/src/addins/MonoDevelop.DotNetCore | |
parent | 5cc927fc440d1cea5195ec3e8f21088c328d9e9c (diff) |
[Core] Add base implementation for IFeatureSwitchController
Diffstat (limited to 'main/src/addins/MonoDevelop.DotNetCore')
-rw-r--r-- | main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreFeatureSwitchController.cs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreFeatureSwitchController.cs b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreFeatureSwitchController.cs index 203c08d395..baffb872ef 100644 --- a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreFeatureSwitchController.cs +++ b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreFeatureSwitchController.cs @@ -32,25 +32,15 @@ using MonoDevelop.Core.FeatureConfiguration; namespace MonoDevelop.DotNetCore { [Extension (typeof (IFeatureSwitchController))] - class DotNetCoreFeatureSwitchController : IFeatureSwitchController + class DotNetCoreFeatureSwitchController : BaseFeatureSwitchController { const string VBNetDotnetCoreTemplatesFeatureSwitchName = "VBNetDotnetCoreTemplates"; - public IEnumerable<FeatureSwitch> DescribeFeatures () + public DotNetCoreFeatureSwitchController () { - yield return new FeatureSwitch (VBNetDotnetCoreTemplatesFeatureSwitchName, + AddFeatureSwitch (VBNetDotnetCoreTemplatesFeatureSwitchName, GettextCatalog.GetString ("Enable VB.NET support for .NET Core"), false); } - - public bool? IsFeatureEnabled (string featureName) - { - switch (featureName) { - case VBNetDotnetCoreTemplatesFeatureSwitchName: - return false; - default: - return null; - } - } } } |