diff options
author | ddunne | 2008-12-18 17:29:05 +0000 |
---|---|---|
committer | ddunne | 2008-12-18 17:29:05 +0000 |
commit | d607c38387bb284e580bb035c75554c630aa61e2 (patch) | |
tree | 488b1562a71cf5ba7cc1755b1dbe2717141139a1 | |
parent | 624d7eb0d8f61ad1aa05d4ccdb25d481307edaa0 (diff) | |
download | org.eclipse.osee-d607c38387bb284e580bb035c75554c630aa61e2.tar.gz org.eclipse.osee-d607c38387bb284e580bb035c75554c630aa61e2.tar.xz org.eclipse.osee-d607c38387bb284e580bb035c75554c630aa61e2.zip |
2 files changed, 14 insertions, 14 deletions
diff --git a/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java index c2a4504d09c..ac05fc59281 100644 --- a/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java +++ b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java @@ -33,13 +33,13 @@ import org.eclipse.swt.widgets.Item; * @author Ryan D. Brooks
*/
public class AttributeCellModifier implements ICellModifier {
- private TableViewer tableViewer;
- private DateValue dateValue;
- private EnumeratedValue enumeratedValue;
- private StringValue stringValue;
- private IDirtiableEditor editor;
+ private final TableViewer tableViewer;
+ private final DateValue dateValue;
+ private final EnumeratedValue enumeratedValue;
+ private final StringValue stringValue;
+ private final IDirtiableEditor editor;
- private AttributesComposite attrComp;
+ private final AttributesComposite attrComp;
public AttributeCellModifier(IDirtiableEditor editor, TableViewer tableViewer, AttributesComposite attrComp) {
super();
@@ -85,8 +85,8 @@ public class AttributeCellModifier implements ICellModifier { */
public Object getValue(Object element, String property) {
try {
- Attribute<?> attribute = (Attribute<?>) element;
- Object object = attribute.getValue();
+ Attribute<?> attribute = (Attribute<?>) element;
+ Object object = attribute.getValue();
if (attribute instanceof EnumeratedAttribute) {
enumeratedValue.setValue(attribute.getDisplayableString());
enumeratedValue.setChocies(((EnumeratedAttribute) attribute).getChoices());
@@ -95,11 +95,11 @@ public class AttributeCellModifier implements ICellModifier { enumeratedValue.setValue(attribute.getDisplayableString());
enumeratedValue.setChocies(BooleanAttribute.booleanChoices);
return enumeratedValue;
- } else if (object instanceof Date) {
+ } else if (attribute instanceof DateAttribute) {
dateValue.setValue((Date) object);
return dateValue;
} else {
- stringValue.setValue(attribute.getDisplayableString() != null ? attribute.getDisplayableString() : "" );
+ stringValue.setValue(attribute.getDisplayableString() != null ? attribute.getDisplayableString() : "");
return stringValue;
}
} catch (OseeCoreException ex) {
diff --git a/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/cellEditor/UniversalCellEditor.java b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/cellEditor/UniversalCellEditor.java index 8dc61dbd661..9f1b99f749f 100644 --- a/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/cellEditor/UniversalCellEditor.java +++ b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/cellEditor/UniversalCellEditor.java @@ -22,9 +22,9 @@ import org.eclipse.swt.widgets.Text; * @author Ryan D. Brooks */ public class UniversalCellEditor extends CellEditor { - private Combo comboBox; - private Text textBox; - private CalendarCombo datePicker; + private final Combo comboBox; + private final Text textBox; + private final CalendarCombo datePicker; private Control control; private boolean personCombo = false; @@ -148,7 +148,7 @@ public class UniversalCellEditor extends CellEditor { } /** - * called just befor a cell is to be edited + * called just before a cell is to be edited */ /* (non-Javadoc) * @see org.eclipse.jface.viewers.CellEditor#doSetValue(java.lang.Object) |