()
| 94 | } |
| 95 | |
| 96 | public void clearStateMap() |
| 97 | { |
| 98 | //Make sure that models get a chance to detach themselves from the UI before disgarding them |
| 99 | if (currentCharacter != null) |
| 100 | { |
| 101 | Map<CharacterInfoTab, ModelMap> states = stateMap.getMapFor(currentCharacter); |
| 102 | states.forEach(CharacterInfoTab::storeModels); |
| 103 | } |
| 104 | stateMap.clear(); |
| 105 | tabSelectionMap.clear(); |
| 106 | currentCharacter = null; |
| 107 | } |
| 108 | |
| 109 | private void initComponent() |
| 110 | { |
no test coverage detected