Browse Source

Fix: "Base types" and "Derived types" disappeared after collapsing and expanding ClassBrowser tree.

pull/80/head
Andreas Weizel 13 years ago
parent
commit
3ef2e3f816
  1. 13
      src/Main/Base/Project/Dom/ClassBrowser/TypeDefinitionTreeNode.cs

13
src/Main/Base/Project/Dom/ClassBrowser/TypeDefinitionTreeNode.cs

@ -23,7 +23,10 @@ namespace ICSharpCode.SharpDevelop.Dom.ClassBrowser
if (definition == null) if (definition == null)
throw new ArgumentNullException("definition"); throw new ArgumentNullException("definition");
this.definition = definition; this.definition = definition;
this.definition.Updated += (sender, e) => UpdateBaseTypesNode(); this.definition.Updated += (sender, e) => {
UpdateBaseTypesNode();
UpdateDerivedTypesNode();
};
} }
protected override object GetModel() protected override object GetModel()
@ -56,9 +59,13 @@ namespace ICSharpCode.SharpDevelop.Dom.ClassBrowser
} }
} }
protected override void LoadChildren() protected override bool IsSpecialNode()
{
return true;
}
protected override void InsertSpecialNodes()
{ {
base.LoadChildren();
// Since following both methods set their entries to the top, "Base types" must come last to get them on top // Since following both methods set their entries to the top, "Base types" must come last to get them on top
UpdateDerivedTypesNode(); UpdateDerivedTypesNode();
UpdateBaseTypesNode(); UpdateBaseTypesNode();

Loading…
Cancel
Save