/** Returns true if the user clicked on "Cancel". */ public boolean wasCanceled() { if (wasCanceled) Macro.abort(); return wasCanceled; }