Project

General

Profile

« Previous | Next » 

Revision c2527228

Added by Patrick Plitzner over 5 years ago

ref #7806 Do not set dirty flag when voc selection was canceled

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureNodeDropAdapter.java
33 33
import eu.etaxonomy.taxeditor.model.MessagingUtils;
34 34
import eu.etaxonomy.taxeditor.store.CdmStore;
35 35
import eu.etaxonomy.taxeditor.ui.dialog.selection.TermVocabularySelectionDialog;
36
import eu.etaxonomy.taxeditor.view.webimport.termimport.parser.ParserUtil;
37 36
import eu.etaxonomy.taxeditor.view.webimport.termimport.wrapper.OntologyTermWrapper;
38 37

  
39 38
public class FeatureNodeDropAdapter extends ViewerDropAdapter {
......
120 119
		                return false;
121 120
		            }
122 121
		        }
123
		        if(vocabulary!=null){
124
		            if(wrapper.getDescription()==null && MessagingUtils.confirmDialog("Load Details?", "Not all details for this term have been loaded yet.\n"
125
		                    + "Do you want to load the details before adding it?")){
126
		                ParserUtil.loadDetails(wrapper);
127
		            }
122
		        if(vocabulary==null){
123
		            return false;
124
		        }
125
		        else{
128 126
		            Feature feature = Feature.NewInstance(wrapper.getDescription(), wrapper.getLabel(), null);
129 127
		            feature.setUri(URI.create(wrapper.getUri()));
130 128
		            vocabulary.addTerm(feature);

Also available in: Unified diff