MCPcopy Create free account
hub / github.com/PCGen/pcgen / reallySaveCharacter

Method reallySaveCharacter

code/src/java/pcgen/gui2/PCGenFrame.java:573–593  ·  view source on GitHub ↗

Wraps the CharacterManager with GUI progress updates @param character @return value from CharacterManager.saveCharacter()

(CharacterFacade character)

Source from the content-addressed store, hash-verified

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

Callers 3

saveCharacterMethod · 0.95
saveAllCharactersMethod · 0.95

Calls 4

saveCharacterMethod · 0.95
errorPrintMethod · 0.95
startShowingProgressMethod · 0.80
endShowingProgressMethod · 0.80

Tested by

no test coverage detected