use of org.apache.cayenne.modeler.pref.FSPath in project cayenne by apache.
the class CodeTemplateManager method updateCustomTemplates.
/**
* Updates custom templates from preferences.
*/
public void updateCustomTemplates(Preferences preference) {
String[] keys = {};
try {
keys = preference.childrenNames();
} catch (BackingStoreException e) {
logger.warn("Error reading preferences");
}
this.customTemplates = new HashMap<>(keys.length, 1);
for (String key : keys) {
FSPath path = new FSPath(preference.node(key));
customTemplates.put(key, path.getPath());
}
}
Aggregations