2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
.element
;
12 import org
.eclipse
.jface
.util
.PropertyChangeEvent
;
15 * <p>CdmPropertyChangeEvent class.</p>
18 * @created Feb 24, 2010
21 public class CdmPropertyChangeEvent
extends PropertyChangeEvent
{
25 private static final long serialVersionUID
= -1010152430827799277L;
27 private Object originatingEvent
;
29 private Exception exception
;
32 * <p>Getter for the field <code>originatingEvent</code>.</p>
34 * @return a {@link java.lang.Object} object.
36 public Object
getOriginatingEvent() {
37 return originatingEvent
;
41 * <p>Constructor for CdmPropertyChangeEvent.</p>
43 * @param eventObject a {@link java.lang.Object} object.
44 * @param originatingEvent a {@link java.lang.Object} object.
46 public CdmPropertyChangeEvent(Object eventObject
, Object originatingEvent
) {
47 super(eventObject
, "EMPTY", null, null);
48 this.originatingEvent
= originatingEvent
;
52 * <p>Constructor for CdmPropertyChangeEvent.</p>
54 * @param eventObject a {@link java.lang.Object} object.
55 * @param exception a {@link java.lang.Exception} object.
57 public CdmPropertyChangeEvent(Object eventObject
, Exception exception
) {
58 super(eventObject
, "EMPTY", null, null);
59 this.exception
= exception
;
63 * <p>Setter for the field <code>exception</code>.</p>
65 * @param exception a {@link java.lang.Exception} object.
67 public void setException(Exception exception
) {
68 this.exception
= exception
;
72 * <p>Getter for the field <code>exception</code>.</p>
74 * @return a {@link java.lang.Exception} object.
76 public Exception
getException(){
85 public boolean hasException(){
86 return exception
!= null;