01: /*
02: * Created on 30 avr. 2005
03: *
04: */
05: package org.openwfe.gpe.model;
06:
07: import org.eclipse.ui.views.properties.IPropertyDescriptor;
08: import org.eclipse.ui.views.properties.TextPropertyDescriptor;
09:
10: /**
11: * @author Christelle
12: *
13: */
14: public class CompareElement extends NoChild {
15:
16: private String fieldValue = "";
17: private String otherValue = "";
18:
19: protected static IPropertyDescriptor[] descriptors;
20:
21: public static final String FIELDVALUE = "field-value";
22: public static final String OTHERVALUE = "other-value";
23:
24: static {
25: descriptors = new IPropertyDescriptor[] {
26: new TextPropertyDescriptor(FIELDVALUE, "field-value"),
27: new TextPropertyDescriptor(OTHERVALUE, "other-value"), };
28: }
29:
30: public String getFieldValue() {
31: return fieldValue;
32: }
33:
34: public void setFieldValue(String s) {
35: fieldValue = s;
36: firePropertyChange(FIELDVALUE, null, s);
37: }
38:
39: public String getOtherValue() {
40: return otherValue;
41: }
42:
43: public void setOtherValue(String s) {
44: otherValue = s;
45: firePropertyChange(OTHERVALUE, null, s);
46: }
47: }
|