Project

General

Profile

Download (2.04 KB) Statistics
| Branch: | Tag: | Revision:
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.ui.element;
11

    
12
import org.eclipse.jface.util.PropertyChangeEvent;
13

    
14
/**
15
 * <p>CdmPropertyChangeEvent class.</p>
16
 *
17
 * @author n.hoffmann
18
 * @created Feb 24, 2010
19
 * @version 1.0
20
 */
21
public class CdmPropertyChangeEvent extends PropertyChangeEvent {
22
	/**
23
	 * 
24
	 */
25
	private static final long serialVersionUID = -1010152430827799277L;
26

    
27
	private Object originatingEvent;
28

    
29
	private Exception exception;
30

    
31
	/**
32
	 * <p>Getter for the field <code>originatingEvent</code>.</p>
33
	 *
34
	 * @return a {@link java.lang.Object} object.
35
	 */
36
	public Object getOriginatingEvent() {
37
		return originatingEvent;
38
	}
39

    
40
	/**
41
	 * <p>Constructor for CdmPropertyChangeEvent.</p>
42
	 *
43
	 * @param eventObject a {@link java.lang.Object} object.
44
	 * @param originatingEvent a {@link java.lang.Object} object.
45
	 */
46
	public CdmPropertyChangeEvent(Object eventObject, Object originatingEvent) {
47
		super(eventObject, "EMPTY", null, null);
48
		this.originatingEvent = originatingEvent;
49
	}
50
	
51
	/**
52
	 * <p>Constructor for CdmPropertyChangeEvent.</p>
53
	 *
54
	 * @param eventObject a {@link java.lang.Object} object.
55
	 * @param exception a {@link java.lang.Exception} object.
56
	 */
57
	public CdmPropertyChangeEvent(Object eventObject, Exception exception) {
58
		super(eventObject, "EMPTY", null, null);
59
		this.exception = exception;
60
	}
61

    
62
	/**
63
	 * <p>Setter for the field <code>exception</code>.</p>
64
	 *
65
	 * @param exception a {@link java.lang.Exception} object.
66
	 */
67
	public void setException(Exception exception) {
68
		this.exception = exception;
69
	}
70
	
71
	/**
72
	 * <p>Getter for the field <code>exception</code>.</p>
73
	 *
74
	 * @return a {@link java.lang.Exception} object.
75
	 */
76
	public Exception getException(){
77
		return exception;
78
	}
79
	
80
	/**
81
	 * <p>hasException</p>
82
	 *
83
	 * @return a boolean.
84
	 */
85
	public boolean hasException(){
86
		return exception != null;
87
	}
88
}
(8-8/47)