Project

General

Profile

« Previous | Next » 

Revision 3f8e87ed

Added by Katja Luther almost 10 years ago

adding a taxon bulk editor and changes because the delete methods does not throw exceptions anymore

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/operation/DeleteTermBaseOperation.java
78 78
			}			
79 79

  
80 80
			definedEditorInput.getVocabularies().remove((TermVocabulary)termBase); 
81
			try{
82
				CdmStore.getService(IVocabularyService.class).delete((TermVocabulary)termBase);
83
			} catch (DataChangeNoRollbackException e) {
84
				
85
				throw new ExecutionException(e.getMessage());
86
				
87
			}
81
			
82
			String result =	CdmStore.getService(IVocabularyService.class).delete((TermVocabulary)termBase);
83
			
88 84
			
89 85
		} else if (termBase instanceof DefinedTermBase) {
90 86
			
......
117 113
			if(vocabulary != null){
118 114
				vocabulary.removeTerm(definedTermBase);
119 115
			}
120
			try{
121
				CdmStore.getService(ITermService.class).delete((DefinedTermBase)termBase);
122
			} catch (DataChangeNoRollbackException e) {
123
				
124
				throw new ExecutionException(e.getMessage());
125
				
126
			}
116
			
117
			String result =	CdmStore.getService(ITermService.class).delete((DefinedTermBase)termBase);
118
			
127 119
		}
128 120
		
129 121
		return postExecute(termBase);

Also available in: Unified diff