This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
src/AddIns/Analysis/UnitTesting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,21 @@ public override void Run()
5454 }
5555 }
5656
57+ public class ExpandAllTestsCommand : AbstractMenuCommand
58+ {
59+ public override void Run ( )
60+ {
61+ if ( ! ( this . Owner is SharpTreeView ) )
62+ return ;
63+
64+ var treeView = ( SharpTreeView ) this . Owner ;
65+ if ( treeView . Root != null ) {
66+ foreach ( var n in treeView . Root . Descendants ( ) )
67+ n . IsExpanded = true ;
68+ }
69+ }
70+ }
71+
5772 public class CollapseAllTestsCommand : AbstractMenuCommand
5873 {
5974 public override void Run ( )
Original file line number Diff line number Diff line change 100100 tooltip="${res:NUnitPad.NUnitPadContent.ReferenceItem}"
101101 class="ICSharpCode.UnitTesting.AddNUnitReferenceCommand"/>
102102 <ToolbarItem id = "CollapseSeparator" type = "Separator"/>
103+ <ToolbarItem id = "ExpandAll"
104+ icon = "Icons.16x16.OpenCollection"
105+ tooltip = "${res:MainWindow.Windows.SearchResultPanel.ExpandAll.ToolTip}"
106+ class = "ICSharpCode.UnitTesting.ExpandAllTestsCommand"/>
103107 <ToolbarItem id = "Collapse"
104108 icon = "Icons.16x16.Collection"
105109 tooltip = "${res:MainWindow.Windows.SearchResultPanel.CollapseAll.ToolTip}"
You can’t perform that action at this time.
0 commit comments