BGBM BDI Projects
/
taxeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
060c7e9
)
update term cache when editing preferred terms in local preferences
author
Katja Luther
<k.luther@bgbm.org>
Mon, 5 Nov 2018 13:04:25 +0000
(14:04 +0100)
committer
Katja Luther
<k.luther@bgbm.org>
Mon, 5 Nov 2018 13:04:25 +0000
(14:04 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/AbstractMenuPreferences.java
patch
|
blob
|
history
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermManager.java
patch
|
blob
|
history
diff --git
a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/AbstractMenuPreferences.java
b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/AbstractMenuPreferences.java
index 1164bdb28a49f6569e6d05dae2baebb6e68d36ed..9c338b47ddf49b9db0a5acd426948134fffcb668 100644
(file)
--- a/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/AbstractMenuPreferences.java
+++ b/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/AbstractMenuPreferences.java
@@
-254,6
+254,7
@@
public abstract class AbstractMenuPreferences<T extends DefinedTermBase> extends
CdmStore.getTermManager().setPreferredTerms(preferredTerms, getTerms());
+ CdmStore.getTermManager().clearTermMapForTermType(getTermType());
refresh(getTerms());
PreferencesUtil.firePreferencesChanged(this.getClass());
diff --git
a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermManager.java
b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermManager.java
index c73d29cfc69f643e24b89aae006f6dacfb508c41..390167a772b560d5114c6f538e73c0b287533daa 100644
(file)
--- a/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermManager.java
+++ b/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermManager.java
@@
-81,6
+81,7
@@
public class TermManager {
if(terms==null){
terms = getFilteredTerms(TermStore.getTerms(clazz));
cachedTermMap.put(clazz, terms);
+
}
return terms;
}
@@
-157,5
+158,12
@@
public class TermManager {
}
+
+
+ }
+
+
+ public void clearTermMapForTermType(TermType termType){
+ cachedTermMap.remove(termType);
}
}