Project

General

Profile

Revision e7e84104

IDe7e84104de9c50889e039a71b56c97d19cc4bb9e
Parent 060c7e9f
Child b123c0b7

Added by Katja Luther about 2 years ago

update term cache when editing preferred terms in local preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/AbstractMenuPreferences.java
254 254

  
255 255
		    CdmStore.getTermManager().setPreferredTerms(preferredTerms, getTerms());
256 256

  
257
		    CdmStore.getTermManager().clearTermMapForTermType(getTermType());
257 258
		    refresh(getTerms());
258 259

  
259 260
		    PreferencesUtil.firePreferencesChanged(this.getClass());
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermManager.java
81 81
	    if(terms==null){
82 82
	        terms = getFilteredTerms(TermStore.getTerms(clazz));
83 83
	        cachedTermMap.put(clazz, terms);
84

  
84 85
	    }
85 86
	    return terms;
86 87
	}
......
157 158

  
158 159

  
159 160
		}
161

  
162

  
163
	}
164

  
165

  
166
	public void clearTermMapForTermType(TermType termType){
167
	    cachedTermMap.remove(termType);
160 168
	}
161 169
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)