diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-11-20 17:46:09 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2014-11-20 17:46:09 +0300 |
commit | d4e33a5f104ecdbe093d0cfa239944bc47acebb2 (patch) | |
tree | b0aa2d865c6b5404404fd043c878bb3f684cfb58 /main/src/addins/MonoDevelop.SourceEditor2 | |
parent | c9fef85044c3b6d92b2a07250f16f288caec995c (diff) |
Remove all calls to ShowException
We use ShowError instead.
Diffstat (limited to 'main/src/addins/MonoDevelop.SourceEditor2')
4 files changed, 7 insertions, 7 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/ColorShemeEditor.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/ColorShemeEditor.cs index af236a9e6a..889f8aa7a7 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/ColorShemeEditor.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/ColorShemeEditor.cs @@ -114,7 +114,7 @@ namespace MonoDevelop.SourceEditor.OptionPanels colorSheme.Save (fileName); panel.ShowStyles (); } catch (Exception ex) { - MessageService.ShowException (ex); + LoggingService.LogInternalError (ex); } RefreshAllColors (); } diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/NewColorShemeDialog.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/NewColorShemeDialog.cs index fd314c8c72..f4b3975f73 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/NewColorShemeDialog.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/NewColorShemeDialog.cs @@ -25,6 +25,7 @@ // THE SOFTWARE. using System; using System.IO; +using MonoDevelop.Core; namespace MonoDevelop.SourceEditor.OptionPanels { @@ -79,7 +80,7 @@ namespace MonoDevelop.SourceEditor.OptionPanels style.FileName = fileName; Mono.TextEditor.Highlighting.SyntaxModeService.AddStyle (style); } catch (Exception ex) { - MonoDevelop.Ide.MessageService.ShowException (ex); + LoggingService.LogInternalError (ex); } } } diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs index 1e4c3be8c4..874c7cf2e6 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs @@ -266,8 +266,7 @@ namespace MonoDevelop.SourceEditor void ReportExtensionError (Exception ex) { - MonoDevelop.Core.LoggingService.LogError ("Error in text editor extension chain", ex); - MessageService.ShowException (ex, "Error in text editor extension chain"); + LoggingService.LogInternalError ("Error in text editor extension chain", ex); } IEnumerable<char> TextWithoutCommentsAndStrings { diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs index 0c2c6c84d3..fa0fb0108a 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs @@ -1064,7 +1064,7 @@ namespace MonoDevelop.SourceEditor view.Load (fileName); view.WorkbenchWindow.Document.ReparseDocument (); } catch (Exception ex) { - MessageService.ShowException (ex, "Could not remove the autosave file."); + LoggingService.LogError ("Could not remove the autosave file.", ex); } finally { RemoveMessageBar (); } @@ -1083,7 +1083,7 @@ namespace MonoDevelop.SourceEditor view.WorkbenchWindow.Document.ReparseDocument (); view.IsDirty = true; } catch (Exception ex) { - MessageService.ShowException (ex, "Could not remove the autosave file."); + LoggingService.LogError ("Could not remove the autosave file.", ex); } finally { RemoveMessageBar (); } @@ -1131,7 +1131,7 @@ namespace MonoDevelop.SourceEditor view.Load (view.ContentName, view.SourceEncoding, true); view.WorkbenchWindow.ShowNotification = false; } catch (Exception ex) { - MessageService.ShowException (ex, "Could not reload the file."); + MessageService.ShowError ("Could not reload the file.", ex); } finally { RemoveMessageBar (); } |