diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-02-12 14:35:41 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-02-12 14:35:41 +0300 |
commit | 940e824f125f5db793e6be7c2dec793c88e32a97 (patch) | |
tree | a1d49571becf12d6f6fd3c9688fa9f9486c091cb /main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs | |
parent | 93c8daeefb07434d15ceaa5d067b6a04e91b7fa9 (diff) |
Extension condition fixes
Fixes use of ItemType conditions.
Introduced concept of type tag, which can be used as alias for referencing
types and flavors. Added an extension condition for tags.
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs index f00b9dd561..8137ebf730 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs @@ -52,8 +52,8 @@ namespace MonoDevelop.Projects.Extensions [NodeAttribute] string type = null; - [NodeAttribute ("alias")] - public string Alias { get; protected set; } + [NodeAttribute ("tag")] + public string TypeTag { get; protected set; } public SolutionItemTypeNode () { @@ -125,7 +125,7 @@ namespace MonoDevelop.Projects.Extensions public virtual bool CanCreateSolutionItem (string type, ProjectCreateInformation info, System.Xml.XmlElement projectOptions) { - return type.Equals (Guid, StringComparison.OrdinalIgnoreCase) || type == Alias; + return type.Equals (Guid, StringComparison.OrdinalIgnoreCase) || type == TypeTag; } public virtual SolutionItem CreateSolutionItem (string type, ProjectCreateInformation info, System.Xml.XmlElement projectOptions) |