()
| 2672 | |
| 2673 | |
| 2674 | public boolean handleSaveAs() { |
| 2675 | statusNotice(Language.text("editor.status.saving")); |
| 2676 | try { |
| 2677 | if (sketch.saveAs()) { |
| 2678 | //statusNotice(Language.text("editor.status.saving.done")); |
| 2679 | // status is now printed from Sketch so that "Done Saving." |
| 2680 | // is only printed after Save As when progress bar is shown. |
| 2681 | } else { |
| 2682 | statusNotice(Language.text("editor.status.saving.canceled")); |
| 2683 | return false; |
| 2684 | } |
| 2685 | } catch (Exception e) { |
| 2686 | // show the error as a message in the window |
| 2687 | statusError(e); |
| 2688 | } |
| 2689 | return true; |
| 2690 | } |
| 2691 | |
| 2692 | |
| 2693 | /* |
no test coverage detected