diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-03-31 21:40:46 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-03-31 21:40:46 +0400 |
commit | 98797cb14ff0bfa036c5091fd6fa8e49d1608145 (patch) | |
tree | 3d45641b84749b26fab8482e3d2564e44331f711 /main/src/addins/NUnit | |
parent | 5aa1e27712243c880e8170235e0ca82e95800623 (diff) |
Added options parameter to OpenDocument
Replaced the old bringToFront and hilightCaret boolean parameters
by a new options parameter which have those and other options.
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Gui/TestNodeBuilder.cs | 4 | ||||
-rw-r--r-- | main/src/addins/NUnit/Gui/TestResultsPad.cs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/main/src/addins/NUnit/Gui/TestNodeBuilder.cs b/main/src/addins/NUnit/Gui/TestNodeBuilder.cs index 885e3c2d57..c30e4063e8 100644 --- a/main/src/addins/NUnit/Gui/TestNodeBuilder.cs +++ b/main/src/addins/NUnit/Gui/TestNodeBuilder.cs @@ -166,7 +166,7 @@ namespace MonoDevelop.NUnit UnitTestResult res = test.GetLastResult (); loc = test.SourceCodeLocation; if (loc != null) - IdeApp.Workbench.OpenDocument (loc.FileName, loc.Line, loc.Column, true); + IdeApp.Workbench.OpenDocument (loc.FileName, loc.Line, loc.Column); } [CommandHandler (TestCommands.GoToFailure)] @@ -180,7 +180,7 @@ namespace MonoDevelop.NUnit if (loc == null) loc = test.SourceCodeLocation; if (loc != null) - IdeApp.Workbench.OpenDocument (loc.FileName, loc.Line, loc.Column, true); + IdeApp.Workbench.OpenDocument (loc.FileName, loc.Line, loc.Column); } [CommandUpdateHandler (TestCommands.ShowTestCode)] diff --git a/main/src/addins/NUnit/Gui/TestResultsPad.cs b/main/src/addins/NUnit/Gui/TestResultsPad.cs index 279a1ce54e..762184e2b0 100644 --- a/main/src/addins/NUnit/Gui/TestResultsPad.cs +++ b/main/src/addins/NUnit/Gui/TestResultsPad.cs @@ -410,7 +410,7 @@ namespace MonoDevelop.NUnit if (i != -1) { int line; if (int.TryParse (file.Substring (i+1), out line)) { - IdeApp.Workbench.OpenDocument (file.Substring (0, i), line, -1, true); + IdeApp.Workbench.OpenDocument (file.Substring (0, i), line, -1); return; } } @@ -462,7 +462,7 @@ namespace MonoDevelop.NUnit if (loc == null) loc = test.SourceCodeLocation; if (loc != null) - IdeApp.Workbench.OpenDocument (loc.FileName, loc.Line, loc.Column, true); + IdeApp.Workbench.OpenDocument (loc.FileName, loc.Line, loc.Column); } [CommandHandler (TestCommands.ShowTestCode)] @@ -473,7 +473,7 @@ namespace MonoDevelop.NUnit return; SourceCodeLocation loc = test.SourceCodeLocation; if (loc != null) - IdeApp.Workbench.OpenDocument (loc.FileName, loc.Line, loc.Column, true); + IdeApp.Workbench.OpenDocument (loc.FileName, loc.Line, loc.Column); } [CommandUpdateHandler (TestCommands.ShowTestCode)] |