Project

General

Profile

Revision c2527228

IDc25272282f409bb54bed8d8dbc356c789cd6c0c9
Parent 72774356
Child aa95aad0

Added by Patrick Plitzner over 2 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

Add picture from clipboard (Maximum size: 40 MB)