Project

General

Profile

« Previous | Next » 

Revision 236273db

Added by Patrick Plitzner over 4 years ago

ref #8477 Check if duplicates are allowed before adding terms to trees

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/operation/DeleteNodeOperation.java
20 20
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
21 21
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
22 22
import eu.etaxonomy.taxeditor.store.CdmStore;
23
import eu.etaxonomy.taxeditor.store.StoreUtil;
23 24

  
24 25
/**
25 26
 * @author n.hoffmann
......
70 71
		}
71 72

  
72 73
		if (!result.isOk() || result.getExceptions().size() > 0){
73
			Exception t = new Exception();
74
			if (result.getExceptions().size() >1){
75
				for (Exception e:result.getExceptions()){
76
					t.addSuppressed(e);
77
				}
78
			}else {
79
				t = result.getExceptions().iterator().next();
80
			}
74
			Exception t = StoreUtil.mergeUpdateResultExceptions(result);
81 75
			MessagingUtils.errorDialog(Messages.DeleteNodeOperation_DELETE_FAILED, getClass(),null, TaxeditorEditorPlugin.PLUGIN_ID, t, true);
82 76
		}
83 77
		return postExecute(null);
84 78
	}
85 79

  
86
	/*
80
    /*
87 81
	 * (non-Javadoc)
88 82
	 *
89 83
	 * @see

Also available in: Unified diff