Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@xamarin.com>2015-02-03 12:00:32 +0300
committerLluis Sanchez Gual <lluis@xamarin.com>2015-02-03 12:00:32 +0300
commit32731167da049be0fbbbd38d758f8edec2950063 (patch)
treebba36047ad96efde9e462db99b73c46a8189baea /main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs
parent79df1eae7178605d202236e742a4be9a3a8f2eb3 (diff)
Fix some warnings, add some docs
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.cs7
1 files changed, 7 insertions, 0 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 37283b264d..5c00072556 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/SolutionItemTypeNode.cs
@@ -109,6 +109,13 @@ namespace MonoDevelop.Projects.Extensions
return await factory.CreateItem (fileName, typeGuid);
}
try {
+ // Some subclasses (such as ProjectTypeNode) need to assign some data to
+ // the object before it is initialized. However, by default initialization
+ // is automatically made by the constructor, so to support this scenario
+ // the initialization has to be delayed. This is done by setting the
+ // MonoDevelop.DelayItemInitialization logical context property.
+ // When this property is set, the object is not initialized, and it has
+ // to be manually initialized by calling EnsureInitialized.
CallContext.LogicalSetData ("MonoDevelop.DelayItemInitialization", true);
return (SolutionItem) Activator.CreateInstance (ItemType);
} finally {