diff options
author | vlorenzo | 2014-01-13 12:42:29 +0000 |
---|---|---|
committer | vlorenzo | 2014-01-13 12:42:29 +0000 |
commit | ba975fbc3fb517843c4a0b8c8014f36daf70209c (patch) | |
tree | 603175006eb07a46c16cff0d9ac213f317d2d9b4 /plugins | |
parent | 7aeed6f753d3fb735f196a71b1535a36439db896 (diff) | |
download | org.eclipse.papyrus-ba975fbc3fb517843c4a0b8c8014f36daf70209c.tar.gz org.eclipse.papyrus-ba975fbc3fb517843c4a0b8c8014f36daf70209c.tar.xz org.eclipse.papyrus-ba975fbc3fb517843c4a0b8c8014f36daf70209c.zip |
425329: [Table 2] Cell editor for real value
https://bugs.eclipse.org/bugs/show_bug.cgi?id=425329
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java index 5c9201287ce..ec321760dad 100644 --- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java +++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java @@ -7,6 +7,7 @@ import org.eclipse.emf.ecore.impl.DynamicEObjectImpl; import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
import org.eclipse.nebula.widgets.nattable.data.convert.DefaultDisplayConverter;
+import org.eclipse.nebula.widgets.nattable.data.convert.DefaultDoubleDisplayConverter;
import org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter;
import org.eclipse.nebula.widgets.nattable.data.convert.IDisplayConverter;
import org.eclipse.nebula.widgets.nattable.data.validate.IDataValidator;
@@ -410,6 +411,9 @@ public class UMLFeatureCellEditorConfig extends EStructuralFeatureEditorConfig { int editorKind = getFeatureIdentifier(table, axisElement);
IDisplayConverter converter = null;
switch(editorKind) {
+ case SINGLE_REAL:
+ converter = new DefaultDoubleDisplayConverter();
+ break;
case SINGLE_UML_REFERENCE:
converter = new DisplayConverter() {
@@ -495,4 +499,4 @@ public class UMLFeatureCellEditorConfig extends EStructuralFeatureEditorConfig { public String getEditorConfigId() {
return EDITOR_CONFIG_ID;
}
-}
+}
\ No newline at end of file |