use of eu.esdihumboldt.hale.ui.service.project.CacheCallback in project hale by halestudio.
the class ProjectServiceImpl method executeConfiguration.
/**
* Execute a single I/O configuration.
*
* @param conf the I/O configuration
*/
private void executeConfiguration(final IOConfiguration conf) {
// work with a cloned configuration for the case that we make a relative
// URI absolute
IOConfiguration cloned = conf.clone();
updater.updateIOConfiguration(cloned, false);
ProjectResourcesUtil.executeConfiguration(cloned, new CacheCallback() {
@Override
public void update(Value cache) {
// update the original configuration with the new cache value
conf.setCache(cache);
// set the project status to changed
setChanged();
}
});
}
Aggregations