1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using ICSharpCode.Core;
7
namespace ICSharpCode.SharpDevelop.Project
9
public class UnknownProject : AbstractProject
11
string warningText = "${res:ICSharpCode.SharpDevelop.Commands.ProjectBrowser.NoBackendForProjectType}";
12
bool warningDisplayedToUser;
14
public string WarningText {
15
get { return warningText; }
16
set { warningText = value; }
19
public bool WarningDisplayedToUser {
20
get { return warningDisplayedToUser; }
21
set { warningDisplayedToUser = value; }
24
public void ShowWarningMessageBox()
26
warningDisplayedToUser = true;
27
MessageService.ShowError("Error loading " + this.FileName + ":\n" + warningText);
30
public UnknownProject(string fileName, string title, string warningText, bool displayWarningToUser)
31
: this(fileName, title)
33
this.warningText = warningText;
34
if (displayWarningToUser) {
35
ShowWarningMessageBox();
39
public UnknownProject(string fileName, string title)
43
TypeGuid = "{00000000-0000-0000-0000-000000000000}";