Browse Source

Hide progress dialog while showing project load errors.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3051 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
ed61e3bfaa
  1. 6
      src/Main/Base/Project/Src/Services/LanguageBinding/LanguageBindingService.cs

6
src/Main/Base/Project/Src/Services/LanguageBinding/LanguageBindingService.cs

@ -119,14 +119,20 @@ namespace ICSharpCode.SharpDevelop @@ -119,14 +119,20 @@ namespace ICSharpCode.SharpDevelop
try {
newProject = binding.LoadProject(provider, location, title);
} catch (XmlException ex) {
if (progressMonitor != null) progressMonitor.ShowingDialog = true;
newProject = new UnknownProject(location, title, ex.Message, true);
newProject.TypeGuid = projectTypeGuid;
if (progressMonitor != null) progressMonitor.ShowingDialog = false;
} catch (Microsoft.Build.BuildEngine.InvalidProjectFileException ex) {
if (progressMonitor != null) progressMonitor.ShowingDialog = true;
newProject = new UnknownProject(location, title, ex.Message, true);
newProject.TypeGuid = projectTypeGuid;
if (progressMonitor != null) progressMonitor.ShowingDialog = false;
} catch (UnauthorizedAccessException ex) {
if (progressMonitor != null) progressMonitor.ShowingDialog = true;
newProject = new UnknownProject(location, title, ex.Message, true);
newProject.TypeGuid = projectTypeGuid;
if (progressMonitor != null) progressMonitor.ShowingDialog = false;
}
} else {
string ext = Path.GetExtension(location);

Loading…
Cancel
Save