Browse Source

Fixed SD2-796: Building whilst debugging

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1381 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
5753bafcba
  1. BIN
      data/resources/StringResources.cz.resources
  2. BIN
      data/resources/StringResources.de.resources
  3. BIN
      data/resources/StringResources.hu.resources
  4. BIN
      data/resources/StringResources.nl.resources
  5. BIN
      data/resources/StringResources.pt-br.resources
  6. BIN
      data/resources/StringResources.tr.resources
  7. 9
      src/Main/Base/Project/Src/Commands/BuildCommands.cs
  8. 4
      src/Main/Base/Project/Src/Commands/FileCommands.cs
  9. 18
      src/Main/Core/Project/Src/Services/MessageService/MessageService.cs
  10. BIN
      src/Main/StartUp/Project/Resources/StringResources.resources

BIN
data/resources/StringResources.cz.resources

Binary file not shown.

BIN
data/resources/StringResources.de.resources

Binary file not shown.

BIN
data/resources/StringResources.hu.resources

Binary file not shown.

BIN
data/resources/StringResources.nl.resources

Binary file not shown.

BIN
data/resources/StringResources.pt-br.resources

Binary file not shown.

BIN
data/resources/StringResources.tr.resources

Binary file not shown.

9
src/Main/Base/Project/Src/Commands/BuildCommands.cs

@ -37,6 +37,15 @@ namespace ICSharpCode.SharpDevelop.Project.Commands @@ -37,6 +37,15 @@ namespace ICSharpCode.SharpDevelop.Project.Commands
public override void Run()
{
if (CanRunBuild) {
if (DebuggerService.IsDebuggerLoaded && DebuggerService.CurrentDebugger.IsDebugging) {
if (MessageService.AskQuestion("${res:XML.MainMenu.RunMenu.Compile.StopDebuggingQuestion}",
"${res:XML.MainMenu.RunMenu.Compile.StopDebuggingTitle}"))
{
DebuggerService.CurrentDebugger.Stop();
} else {
return;
}
}
BeforeBuild();
StartBuild();
} else {

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

@ -26,8 +26,8 @@ namespace ICSharpCode.SharpDevelop.Commands @@ -26,8 +26,8 @@ namespace ICSharpCode.SharpDevelop.Commands
public override void Run()
{
if (ProjectService.CurrentProject != null) {
if (MessageService.ShowCustomDialog("${res:Dialog.NewFile.AddToProjectQuestion}",
"${res:Dialog.NewFile.AddToProjectQuestionTitle}",
if (MessageService.ShowCustomDialog("${res:Dialog.NewFile.AddToProjectQuestionTitle}",
"${res:Dialog.NewFile.AddToProjectQuestion}",
"${res:Dialog.NewFile.AddToProjectQuestionProject}",
"${res:Dialog.NewFile.AddToProjectQuestionStandalone}")
== 0)

18
src/Main/Core/Project/Src/Services/MessageService/MessageService.cs

@ -63,6 +63,8 @@ namespace ICSharpCode.Core @@ -63,6 +63,8 @@ namespace ICSharpCode.Core
public static void ShowError(Exception ex, string message)
{
if (message == null) message = string.Empty;
if (ex != null) {
LoggingService.Error(message, ex);
if (customErrorReporter != null) {
@ -73,21 +75,7 @@ namespace ICSharpCode.Core @@ -73,21 +75,7 @@ namespace ICSharpCode.Core
LoggingService.Error(message);
}
#if DEBUG
if (ex != null) {
Console.Beep();
return;
}
#endif
string msg = String.Empty;
if (message != null) {
msg += message;
}
if (message != null && ex != null) {
msg += "\n\n";
}
string msg = message + "\n\n";
if (ex != null) {
msg += "Exception occurred: " + ex.ToString();

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

Binary file not shown.
Loading…
Cancel
Save