Project

General

Profile

« Previous | Next » 

Revision 3001881c

Added by Cherian Mathew almost 10 years ago

refactoring cdm data source to cdm source
plugin.xml : added clone menu item / command

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/ContextManager.java
218 218
	
219 219
	private void createMemento(){
220 220
		
221
		if (CdmStore.getDataSource() != null) {
221
		if (CdmStore.getActiveCdmSource() != null) {
222 222
			
223 223
			try {
224
				String name = CdmStore.getDataSource().getName();
224
				String name = CdmStore.getActiveCdmSource().getName();
225 225
				name = name.trim();
226 226
				name = name.replace(" ", "_");
227 227
				memento = XMLMemento.createWriteRoot(name);
......
247 247
	 * @return a {@link java.io.File} object.
248 248
	 */
249 249
	protected File getStateFileForCurrentDatabase() {
250
		if(CdmStore.getDataSource() == null){
250
		if(CdmStore.getActiveCdmSource() == null){
251 251
			return null;
252 252
		}
253 253
		
......
255 255
		if (path == null) {
256 256
			return null;
257 257
		}
258
		path = path.append("editor_state_" + CdmStore.getDataSource().getName() + ".xml");
258
		path = path.append("editor_state_" + CdmStore.getActiveCdmSource().getName() + ".xml");
259 259
		return path.toFile();
260 260
	}
261 261

  

Also available in: Unified diff