You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
// 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; |
|
using System.Collections.Generic; |
|
using ICSharpCode.TreeView; |
|
using ICSharpCode.SharpDevelop.Project; |
|
|
|
namespace ICSharpCode.SharpDevelop.Dom.ClassBrowser |
|
{ |
|
public class SolutionTreeNode : ModelCollectionTreeNode |
|
{ |
|
ISolution solution; |
|
|
|
public SolutionTreeNode(ISolution solution) |
|
{ |
|
if (solution == null) |
|
throw new ArgumentNullException("solution"); |
|
this.solution = solution; |
|
} |
|
|
|
protected override object GetModel() |
|
{ |
|
return solution; |
|
} |
|
|
|
public override object Text { |
|
get { |
|
return "Solution " + solution.Name; |
|
} |
|
} |
|
|
|
public override object Icon { |
|
get { |
|
return IconService.GetImageSource("Icons.16x16.SolutionIcon"); |
|
} |
|
} |
|
|
|
protected override IComparer<SharpTreeNode> NodeComparer { |
|
get { |
|
return NodeTextComparer; |
|
} |
|
} |
|
|
|
protected override IModelCollection<object> ModelChildren { |
|
get { |
|
return solution.Projects; |
|
} |
|
} |
|
} |
|
} |
|
|
|
|
|
|