diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-04-01 14:51:25 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2014-04-01 14:51:25 +0400 |
commit | 2fb79caf515824360412632b9f69d6f4e4820374 (patch) | |
tree | c7402db2c2d31c92e05c60d7cc65cd1021ca4dc3 /main/src/core/MonoDevelop.Core | |
parent | 951e0424c2c89f8dea34b26ff7d03e7ad3dfbc1c (diff) |
[Core] Added Flags property to ProjectItem
This property can be used to control how the item is shown to the user
and how it is persisted in the project file.
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItem.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItem.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItem.cs index 1aeec8dd03..8c5a7303fa 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItem.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItem.cs @@ -43,6 +43,8 @@ namespace MonoDevelop.Projects } internal string Condition { get; set; } + + public ProjectItemFlags Flags { get; set; } } public class UnknownProjectItem: ProjectItem @@ -58,4 +60,20 @@ namespace MonoDevelop.Projects this.Include = include; } } + + [Flags] + public enum ProjectItemFlags + { + None = 0, + + /// <summary> + /// The item is for internal use and will not be shown to the user + /// </summary> + Hidden = 1, + + /// <summary> + /// The item will not be saved to the project file + /// </summary> + DontPersist = 2 + } } |