6 changed files with 109 additions and 8 deletions
@ -0,0 +1,48 @@
@@ -0,0 +1,48 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Dom.ClassBrowser |
||||
{ |
||||
/// <summary>
|
||||
/// Description of BaseTypesTreeNode.
|
||||
/// </summary>
|
||||
public class BaseTypesTreeNode : ModelCollectionTreeNode |
||||
{ |
||||
ITypeDefinitionModel definition; |
||||
string text; |
||||
|
||||
public BaseTypesTreeNode(ITypeDefinitionModel definition) |
||||
{ |
||||
if (definition == null) |
||||
throw new ArgumentNullException("definition"); |
||||
this.definition = definition; |
||||
this.text = SD.ResourceService.GetString("MainWindow.Windows.ClassBrowser.BaseTypes"); |
||||
} |
||||
|
||||
protected override IModelCollection<object> ModelChildren { |
||||
get { |
||||
return definition.BaseTypes; |
||||
} |
||||
} |
||||
|
||||
protected override System.Collections.Generic.IComparer<ICSharpCode.TreeView.SharpTreeNode> NodeComparer { |
||||
get { |
||||
return NodeTextComparer; |
||||
} |
||||
} |
||||
|
||||
public override object Text { |
||||
get { |
||||
return text; |
||||
} |
||||
} |
||||
|
||||
public override object Icon { |
||||
get { |
||||
return SD.ResourceService.GetImageSource("Icons.16x16.OpenFolderBitmap"); |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue