protected static QResponse setResponse(QResponse qresponse)
{
- Console.debug("setResponse(" + qresponse.toString() + ")");
+ Console.trace("setResponse(" + qresponse.toString() + ")");
gotQuitResponse = qresponse;
if ((qresponse == QResponse.CANCEL_QUIT || qresponse == QResponse.NULL)
&& flatlafResponse != null)
{
- Console.debug("Running flatLafResponse.cancelQuit()");
+ Console.trace("Running flatLafResponse.cancelQuit()");
flatlafResponse.cancelQuit();
}
return qresponse;
}
public static final Runnable defaultCancelQuit = () -> {
- Console.debug("QuitHandler: (default) Quit action CANCELLED by user");
+ Console.trace("QuitHandler: (default) Quit action CANCELLED by user");
// reset
setResponse(QResponse.CANCEL_QUIT);
};
public static final Runnable defaultOkQuit = () -> {
- Console.debug("QuitHandler: (default) Quit action CONFIRMED by user");
+ Console.trace("QuitHandler: (default) Quit action CONFIRMED by user");
setResponse(QResponse.QUIT);
};
public static final Runnable defaultForceQuit = () -> {
- Console.debug("QuitHandler: (default) Quit action FORCED by user");
+ Console.trace("QuitHandler: (default) Quit action FORCED by user");
// note that shutdown hook will not be run
Runtime.getRuntime().halt(0);
setResponse(QResponse.FORCE_QUIT); // this line never reached!
Runnable forceQuit, Runnable cancelQuit)
{
QResponse got = gotQuitResponse();
- Console.debug("Quit response is '" + got.toString()
+ Console.trace("Quit response is '" + got.toString()
+ "' at start of getQuitResponse(...)");
if (got != QResponse.NULL && got != QResponse.CANCEL_QUIT)
{
// quit has already been selected, continue with calling quit method
- Console.debug("Returning already set quit response of '"
+ Console.trace("Returning already set quit response of '"
+ got.toString() + "' at start of getQuitResponse(...)");
return got;
}
{
confirmQuit = jalview.bin.Cache
.getDefault(jalview.gui.Desktop.CONFIRM_KEYBOARD_QUIT, true);
- Console.debug("Jalview property '"
+ Console.trace("Jalview property '"
+ jalview.gui.Desktop.CONFIRM_KEYBOARD_QUIT + "' is "
+ confirmQuit + " -- " + (confirmQuit ? "" : "not ")
+ "confirming quit");
got = confirmQuit ? QResponse.NULL : QResponse.QUIT;
setResponse(got);
- Console.debug("confirmQuit is '" + confirmQuit
+ Console.trace("confirmQuit is '" + confirmQuit
+ "', setting quit response to " + got);
if (confirmQuit)
MessageManager.getString("action.cancel") },
MessageManager.getString("action.quit"), true);
- Console.debug("Waiting for response handler to run action");
+ Console.trace("Waiting for response handler to run action");
qd.waitForHandlerToFinish();
}
got = gotQuitResponse();
- Console.debug("Quit response is '" + got.toString()
+ Console.trace("Quit response is '" + got.toString()
+ "' after response handler");
// check for external viewer frames
got = gotQuitResponse();
- Console.debug("Quit response is '" + got.toString()
+ Console.trace("Quit response is '" + got.toString()
+ "' after external structure viewer check");
boolean wait = false;