Browse Source

Don't throw exception when an SDK tool is not found.

Update caret position when foldings change.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3323 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
b3d8bda1a8
  1. 1
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs
  2. 7
      src/Main/Core/Project/Src/Services/FileUtility/FileUtility.cs

1
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs

@ -552,6 +552,7 @@ namespace ICSharpCode.TextEditor @@ -552,6 +552,7 @@ namespace ICSharpCode.TextEditor
}
void DocumentFoldingsChanged(object sender, EventArgs e)
{
Caret.UpdateCaretPosition();
Invalidate();
this.motherTextAreaControl.AdjustScrollBars();
}

7
src/Main/Core/Project/Src/Services/FileUtility/FileUtility.cs

@ -182,10 +182,7 @@ namespace ICSharpCode.Core @@ -182,10 +182,7 @@ namespace ICSharpCode.Core
/// exe from the latest sdk.
/// </summary>
/// <param name="exeName">The EXE to search for.</param>
/// <returns>The path of the executable.</returns>
/// <exception cref="System.IO.FileNotFoundException">
/// Thrown if the exe is not found.
/// </exception>
/// <returns>The path of the executable, or null if the exe is not found.</returns>
public static string GetSdkPath(string exeName) {
string execPath;
if (!string.IsNullOrEmpty(WindowsSdk61InstallRoot)) {
@ -204,7 +201,7 @@ namespace ICSharpCode.Core @@ -204,7 +201,7 @@ namespace ICSharpCode.Core
execPath = Path.Combine(NetSdk20InstallRoot, "bin\\" + exeName);
if (File.Exists(execPath)) { return execPath; }
}
throw new FileNotFoundException(StringParser.Parse("${res:Fileutility.CantFindExecutableError}", new string[,] { {"EXECUTABLE", exeName} }));
return null;
}
/// <summary>

Loading…
Cancel
Save