fix #7499 fix NPE for cancel of taxon node selection
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / e4 / TaxonEditorInputDataChangeBehaviourE4.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.taxeditor.editor.e4;
11
12 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
13 import eu.etaxonomy.taxeditor.model.AbstractDataChangeBehaviour;
14
15 /**
16 *
17 * @author pplitzner
18 * @date Aug 24, 2017
19 *
20 */
21 public class TaxonEditorInputDataChangeBehaviourE4 extends
22 AbstractDataChangeBehaviour {
23
24 private TaxonEditorInputE4 source;
25
26 public TaxonEditorInputDataChangeBehaviourE4(TaxonEditorInputE4 taxonEditorInput) {
27 source = taxonEditorInput;
28 }
29
30 /** {@inheritDoc} */
31 @Override
32 public void reactOnDataChange(CdmDataChangeMap events) {
33 source.update(events);
34
35 }
36 }