forked from NearInfinityBrowser/NearInfinity
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve confirm option how to handle unsaved changes
- Clarified button labels of confirmation dialogs. - Added option to save, discard or cancel to all confirmation dialogs unless cancelling is not an available option. - Improved internal handling of cancelled operations (e.g. no needless output of exception stacktraces)
- Loading branch information
Showing
16 changed files
with
259 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Near Infinity - An Infinity Engine Browser and Editor | ||
// Copyright (C) 2001 Jon Olav Hauglid | ||
// See LICENSE.txt for license information | ||
|
||
package org.infinity.exceptions; | ||
|
||
/** | ||
* Thrown to indicate that the current operation was intentionally aborted. | ||
*/ | ||
public class AbortException extends Exception { | ||
/** Constructs an {@code AbortException} with no detail message. */ | ||
public AbortException() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Constructs an {@code AbortException} with the specified detail message. | ||
* | ||
* @param message the detail message. | ||
*/ | ||
public AbortException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Constructs an {@code AbortException} with the specified detail message and cause. | ||
* | ||
* @param message the detail message. | ||
* @param cause the cause for this exception to be thrown. | ||
*/ | ||
public AbortException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Constructs an {@code AbortException} with a cause but no detail message. | ||
* | ||
* @param cause the cause for this exception to be thrown. | ||
*/ | ||
public AbortException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.