(CharacterFacade character)
| 637 | } |
| 638 | |
| 639 | public void closeCharacter(CharacterFacade character) |
| 640 | { |
| 641 | if (character.isDirty()) |
| 642 | { |
| 643 | int ret = JOptionPane.showConfirmDialog(this, |
| 644 | LanguageBundle.getFormattedString("in_savePcChoice", character //$NON-NLS-1$ |
| 645 | .getNameRef().get()), Constants.APPLICATION_NAME, JOptionPane.YES_NO_CANCEL_OPTION); |
| 646 | if (ret == JOptionPane.CANCEL_OPTION) |
| 647 | { |
| 648 | return; |
| 649 | } |
| 650 | if (ret == JOptionPane.YES_OPTION) |
| 651 | { |
| 652 | saveCharacter(character); |
| 653 | } |
| 654 | } |
| 655 | CharacterManager.removeCharacter(character); |
| 656 | } |
| 657 | |
| 658 | public boolean closeAllCharacters() |
| 659 | { |
nothing calls this directly
no test coverage detected