Wraps the CharacterManager with GUI progress updates @param character @return value from CharacterManager.saveCharacter()
(CharacterFacade character)
| 571 | * @return value from CharacterManager.saveCharacter() |
| 572 | */ |
| 573 | public boolean reallySaveCharacter(CharacterFacade character) |
| 574 | { |
| 575 | boolean result = false; |
| 576 | |
| 577 | // KAW TODO externalize and NLS the msg |
| 578 | final String msg = "Saving character..."; |
| 579 | statusBar.startShowingProgress(msg, true); |
| 580 | try |
| 581 | { |
| 582 | result = CharacterManager.saveCharacter(character); |
| 583 | } |
| 584 | catch (Exception e) |
| 585 | { |
| 586 | Logging.errorPrint(e.getLocalizedMessage(), e); |
| 587 | } |
| 588 | finally |
| 589 | { |
| 590 | statusBar.endShowingProgress(); |
| 591 | } |
| 592 | return result; |
| 593 | } |
| 594 | |
| 595 | /** |
| 596 | * Prepare the character for a save. This is primarily concerned with |
no test coverage detected