3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.ui
.element
;
13 import org
.eclipse
.jface
.util
.PropertyChangeEvent
;
16 * <p>CdmPropertyChangeEvent class.</p>
19 * @created Feb 24, 2010
22 public class CdmPropertyChangeEvent
extends PropertyChangeEvent
{
26 private static final long serialVersionUID
= -1010152430827799277L;
28 private Object originatingEvent
;
30 private Exception exception
;
33 * <p>Getter for the field <code>originatingEvent</code>.</p>
35 * @return a {@link java.lang.Object} object.
37 public Object
getOriginatingEvent() {
38 return originatingEvent
;
42 * <p>Constructor for CdmPropertyChangeEvent.</p>
44 * @param eventObject a {@link java.lang.Object} object.
45 * @param originatingEvent a {@link java.lang.Object} object.
47 public CdmPropertyChangeEvent(Object eventObject
, Object originatingEvent
) {
48 super(eventObject
, "EMPTY", null, null);
49 this.originatingEvent
= originatingEvent
;
53 * <p>Constructor for CdmPropertyChangeEvent.</p>
55 * @param eventObject a {@link java.lang.Object} object.
56 * @param exception a {@link java.lang.Exception} object.
58 public CdmPropertyChangeEvent(Object eventObject
, Exception exception
) {
59 super(eventObject
, "EMPTY", null, null);
60 this.exception
= exception
;
64 * <p>Setter for the field <code>exception</code>.</p>
66 * @param exception a {@link java.lang.Exception} object.
68 public void setException(Exception exception
) {
69 this.exception
= exception
;
73 * <p>Getter for the field <code>exception</code>.</p>
75 * @return a {@link java.lang.Exception} object.
77 public Exception
getException(){
86 public boolean hasException(){
87 return exception
!= null;