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.
9 package eu
.etaxonomy
.taxeditor
.ui
.element
;
11 import org
.eclipse
.jface
.util
.PropertyChangeEvent
;
14 * <p>CdmPropertyChangeEvent class.</p>
17 * @created Feb 24, 2010
20 public class CdmPropertyChangeEvent
extends PropertyChangeEvent
{
24 private static final long serialVersionUID
= -1010152430827799277L;
26 private Object originatingEvent
;
28 private Exception exception
;
31 * <p>Getter for the field <code>originatingEvent</code>.</p>
33 * @return a {@link java.lang.Object} object.
35 public Object
getOriginatingEvent() {
36 return originatingEvent
;
40 * <p>Constructor for CdmPropertyChangeEvent.</p>
42 * @param eventObject a {@link java.lang.Object} object.
43 * @param originatingEvent a {@link java.lang.Object} object.
45 public CdmPropertyChangeEvent(Object eventObject
, Object originatingEvent
) {
46 super(eventObject
, "EMPTY", null, null);
47 this.originatingEvent
= originatingEvent
;
51 * <p>Constructor for CdmPropertyChangeEvent.</p>
53 * @param eventObject a {@link java.lang.Object} object.
54 * @param exception a {@link java.lang.Exception} object.
56 public CdmPropertyChangeEvent(Object eventObject
, Exception exception
) {
57 super(eventObject
, "EMPTY", null, null);
58 this.exception
= exception
;
62 * <p>Setter for the field <code>exception</code>.</p>
64 * @param exception a {@link java.lang.Exception} object.
66 public void setException(Exception exception
) {
67 this.exception
= exception
;
71 * <p>Getter for the field <code>exception</code>.</p>
73 * @return a {@link java.lang.Exception} object.
75 public Exception
getException(){
84 public boolean hasException(){
85 return exception
!= null;