diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-01-28 22:59:33 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-01-28 22:59:33 +0300 |
commit | 42bed40f69bfbc3b4730bc66f50695b3fc54a17f (patch) | |
tree | c5fcffed6ebf6b0ea16d3d2e2f3e49d76a56b966 /extras/MonoDevelop.AddinAuthoring | |
parent | edec5f536311919e1effdbb14cc21d0a6e683759 (diff) |
* MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs: Track api
changes.
svn path=/trunk/monodevelop/; revision=150453
Diffstat (limited to 'extras/MonoDevelop.AddinAuthoring')
-rw-r--r-- | extras/MonoDevelop.AddinAuthoring/ChangeLog | 5 | ||||
-rw-r--r-- | extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs | 16 |
2 files changed, 14 insertions, 7 deletions
diff --git a/extras/MonoDevelop.AddinAuthoring/ChangeLog b/extras/MonoDevelop.AddinAuthoring/ChangeLog index 08d84a2854..c7a8bc5ca0 100644 --- a/extras/MonoDevelop.AddinAuthoring/ChangeLog +++ b/extras/MonoDevelop.AddinAuthoring/ChangeLog @@ -1,5 +1,10 @@ 2010-01-28 Lluis Sanchez Gual <lluis@novell.com> + * MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs: Track api + changes. + +2010-01-28 Lluis Sanchez Gual <lluis@novell.com> + * MonoDevelop.AddinAuthoring/AddinAuthoringService.cs: * MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs: Track api changes. diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs index 255b443c8d..0ea6180984 100644 --- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs +++ b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs @@ -220,9 +220,16 @@ namespace MonoDevelop.AddinAuthoring get { return AddinManager.CurrentLocalizer.GetString ("Support of extensibility with add-ins"); } } - public bool SupportsSolutionItem (SolutionFolder parentCombine, SolutionItem entry) + public FeatureSupportLevel GetSupportLevel (SolutionFolder parentCombine, SolutionItem entry) { - return entry is DotNetProject; + if (entry is DotNetProject) { + if (AddinData.GetAddinData ((DotNetProject)entry) != null) + return FeatureSupportLevel.Enabled; + else + return FeatureSupportLevel.Supported; + } + else + return FeatureSupportLevel.NotSupported; } public Widget CreateFeatureEditor (SolutionFolder parentFolder, SolutionItem entry) @@ -232,11 +239,6 @@ namespace MonoDevelop.AddinAuthoring return w; } - public bool IsEnabled (SolutionFolder parentCombine, SolutionItem entry) - { - return AddinData.GetAddinData ((DotNetProject)entry) != null; - } - public string Validate (SolutionFolder parentCombine, SolutionItem entry, Widget ed) { AddinFeatureWidget editor = (AddinFeatureWidget) ed; |