private void createMemento(){
- if (CdmStore.getDataSource() != null) {
+ if (CdmStore.getActiveCdmSource() != null) {
try {
- String name = CdmStore.getDataSource().getName();
+ String name = CdmStore.getActiveCdmSource().getName();
name = name.trim();
name = name.replace(" ", "_");
memento = XMLMemento.createWriteRoot(name);
* @return a {@link java.io.File} object.
*/
protected File getStateFileForCurrentDatabase() {
- if(CdmStore.getDataSource() == null){
+ if(CdmStore.getActiveCdmSource() == null){
return null;
}
if (path == null) {
return null;
}
- path = path.append("editor_state_" + CdmStore.getDataSource().getName() + ".xml");
+ path = path.append("editor_state_" + CdmStore.getActiveCdmSource().getName() + ".xml");
return path.toFile();
}