[Monodevelop-patches-list] r578 - in trunk/MonoDevelop/src: Libraries/MonoDevelop.Gui/Tree Main/Base/Gui/Pads/ProjectBrowser/NodeBuilder Main/Base/Services/ParserService
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Jan 19 19:23:48 EST 2004
Author: benm
Date: 2004-01-19 19:23:48 -0500 (Mon, 19 Jan 2004)
New Revision: 578
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNodeCollection.cs
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs
trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/NodeBuilder/DefaultDotNetNodeBuilder.cs
trunk/MonoDevelop/src/Main/Base/Services/ParserService/AssemblyInformation.cs
Log:
fix treeviews
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs 2004-01-19 22:59:48 UTC (rev 577)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs 2004-01-20 00:23:48 UTC (rev 578)
@@ -170,5 +170,14 @@
TreeView.SetCursor (new Gtk.TreePath (TreePath), TreeView.complete_column, true);
TreeView.GrabFocus ();
}
+
+ public void Sort ()
+ {
+ Nodes.Sort ();
+ }
+ public void Sort (IComparer c)
+ {
+ Nodes.Sort (c);
+ }
}
}
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNodeCollection.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNodeCollection.cs 2004-01-19 22:59:48 UTC (rev 577)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNodeCollection.cs 2004-01-20 00:23:48 UTC (rev 578)
@@ -26,7 +26,19 @@
Changed();
}
}
-
+
+ public void Sort ()
+ {
+ list.Sort ();
+ Changed ();
+ }
+
+ public void Sort (IComparer c)
+ {
+ list.Sort (c);
+ Changed ();
+ }
+
public virtual TreeNode Add(string text)
{
TreeNode node = new TreeNode (text, null);
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs 2004-01-19 22:59:48 UTC (rev 577)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs 2004-01-20 00:23:48 UTC (rev 578)
@@ -107,14 +107,14 @@
}
public void BeginUpdate() {
- updating = true;
+ //updating = true;
}
public void EndUpdate() {
- if (updating == true) {
- UpdateStore(store);
- }
- updating = false;
+ //if (updating == true) {
+ // UpdateStore(store);
+ //}
+ //updating = false;
}
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 22:59:48 UTC (rev 577)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/NodeBuilder/DefaultDotNetNodeBuilder.cs 2004-01-20 00:23:48 UTC (rev 578)
@@ -422,9 +422,7 @@
}
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;
@@ -455,11 +453,8 @@
newReferenceNode.IconImage = resourceService.GetBitmap("Icons.16x16.Reference");
parentNode.Nodes.Add(newReferenceNode);
- }
- SortUtility.QuickSort(parentNode.Nodes, TreeNodeComparer.ProjectNode);
- if (parentNode.TreeView != null) {
- parentNode.TreeView.EndUpdate ();
- }
+ }
+ parentNode.Sort (TreeNodeComparer.ProjectNode);
}
}
Modified: trunk/MonoDevelop/src/Main/Base/Services/ParserService/AssemblyInformation.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/ParserService/AssemblyInformation.cs 2004-01-19 22:59:48 UTC (rev 577)
+++ trunk/MonoDevelop/src/Main/Base/Services/ParserService/AssemblyInformation.cs 2004-01-20 00:23:48 UTC (rev 578)
@@ -90,7 +90,7 @@
}
}
- System.Reflection.Assembly asm = nonLocking ? Assembly.Load(GetBytes(fileName)) : Assembly.LoadFrom(fileName);
+ System.Reflection.Assembly asm = /* nonLocking ? Assembly.Load(GetBytes(fileName)) : */ Assembly.LoadFrom(fileName);
foreach (Type type in asm.GetTypes()) {
if (!type.FullName.StartsWith("<")) {
classes.Add(new ReflectionClass(type, docuNodes));
More information about the Monodevelop-patches-list
mailing list