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

Method clearStateMap

code/src/java/pcgen/gui2/tabs/InfoTabbedPane.java:96–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 2

stateChangedMethod · 0.80
elementsChangedMethod · 0.80

Calls 3

forEachMethod · 0.80
clearMethod · 0.65
getMapForMethod · 0.45

Tested by

no test coverage detected