[Monodevelop-patches-list] r576 - in trunk/MonoDevelop/src: Libraries/MonoDevelop.Gui/Tree Main/Base/Gui/Pads/ProjectBrowser/NodeBuilder

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 19 17:22:25 EST 2004


Author: benm
Date: 2004-01-19 17:22:25 -0500 (Mon, 19 Jan 2004)
New Revision: 576

Modified:
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/NodeBuilder/DefaultDotNetNodeBuilder.cs
Log:
fix ref adding

Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs	2004-01-19 21:30:26 UTC (rev 575)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs	2004-01-19 22:22:25 UTC (rev 576)
@@ -107,15 +107,15 @@
 		}
 		
 		public void BeginUpdate() {
-//			updating = true;
+			updating = true;
 		}
 		
 		public void EndUpdate() {
-/*			if (updating == true) {
+			if (updating == true) {
 				UpdateStore(store);
 			}
 			updating = false;
-*/
+
 		}
 				
 		internal void OnTreeChanged() {

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/NodeBuilder/DefaultDotNetNodeBuilder.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/NodeBuilder/DefaultDotNetNodeBuilder.cs	2004-01-19 21:30:26 UTC (rev 575)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/NodeBuilder/DefaultDotNetNodeBuilder.cs	2004-01-19 22:22:25 UTC (rev 576)
@@ -422,7 +422,9 @@
 		}
 
 		public static void InitializeReferences(AbstractBrowserNode parentNode, IProject project)
-		{
+		{
+			if (parentNode.TreeView != null)
+				parentNode.TreeView.BeginUpdate ();
 			parentNode.Nodes.Clear();
 			foreach (ProjectReference referenceInformation in project.ProjectReferences) {
 				string name = null;
@@ -454,7 +456,10 @@
 
 				parentNode.Nodes.Add(newReferenceNode);
 			}
-			SortUtility.QuickSort(parentNode.Nodes, TreeNodeComparer.ProjectNode);
+			SortUtility.QuickSort(parentNode.Nodes, TreeNodeComparer.ProjectNode);
+			if (parentNode.TreeView != null) {
+				parentNode.TreeView.EndUpdate ();
+			}
 		}
 		
 	}




More information about the Monodevelop-patches-list mailing list