|
|
@ -2,6 +2,7 @@ |
|
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
|
|
|
|
using System.Windows.Forms; |
|
|
|
using ICSharpCode.Core; |
|
|
|
using ICSharpCode.Core; |
|
|
|
using ICSharpCode.SharpDevelop; |
|
|
|
using ICSharpCode.SharpDevelop; |
|
|
|
using ICSharpCode.SharpDevelop.Dom; |
|
|
|
using ICSharpCode.SharpDevelop.Dom; |
|
|
@ -99,4 +100,20 @@ namespace ICSharpCode.UnitTesting |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class CollapseAllTestsCommand : AbstractMenuCommand |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public override void Run() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (!(this.Owner is TreeView)) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var treeView = (TreeView)this.Owner; |
|
|
|
|
|
|
|
treeView.CollapseAll(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (treeView.Nodes.Count > 0) { |
|
|
|
|
|
|
|
treeView.Nodes[0].Expand(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|