Browse Source

SD2-900: Reloading non existant file throws exception

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1845 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Markus Palme 19 years ago
parent
commit
3e436eb1d7
  1. BIN
      data/resources/StringResources.es-mx.resources
  2. BIN
      data/resources/StringResources.es.resources
  3. BIN
      data/resources/StringResources.nl.resources
  4. 11
      src/Main/Base/Project/Src/Commands/FileCommands.cs
  5. BIN
      src/Main/StartUp/Project/Resources/StringResources.resources

BIN
data/resources/StringResources.es-mx.resources

Binary file not shown.

BIN
data/resources/StringResources.es.resources

Binary file not shown.

BIN
data/resources/StringResources.nl.resources

Binary file not shown.

11
src/Main/Base/Project/Src/Commands/FileCommands.cs

@ -91,7 +91,16 @@ namespace ICSharpCode.SharpDevelop.Commands @@ -91,7 +91,16 @@ namespace ICSharpCode.SharpDevelop.Commands
if (window.ViewContent is IMementoCapable) {
memento = ((IMementoCapable)window.ViewContent).CreateMemento();
}
window.ViewContent.Load(window.ViewContent.FileName);
try
{
window.ViewContent.Load(window.ViewContent.FileName);
}
catch(FileNotFoundException)
{
MessageService.ShowWarning("${res:ICSharpCode.SharpDevelop.Commands.ReloadFile.FileDeletedMessage}");
return;
}
if (memento != null) {
((IMementoCapable)window.ViewContent).SetMemento(memento);
}

BIN
src/Main/StartUp/Project/Resources/StringResources.resources

Binary file not shown.
Loading…
Cancel
Save