Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2014-01-13 07:35:40 -0500
committervlorenzo2014-01-13 07:35:40 -0500
commit3a2bb8601d70fb36947a0e86d9c47b90cfd5676e (patch)
treef8447261733b30e8ab630a35ba31305390ca9940 /extraplugins
parentf2ba65f3a63d9843ca19043df0371e1fcd546ba0 (diff)
downloadorg.eclipse.papyrus-3a2bb8601d70fb36947a0e86d9c47b90cfd5676e.tar.gz
org.eclipse.papyrus-3a2bb8601d70fb36947a0e86d9c47b90cfd5676e.tar.xz
org.eclipse.papyrus-3a2bb8601d70fb36947a0e86d9c47b90cfd5676e.zip
425329: [Table 2] Cell editor for real value
https://bugs.eclipse.org/bugs/show_bug.cgi?id=425329
Diffstat (limited to 'extraplugins')
-rw-r--r--extraplugins/table/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/extraplugins/table/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java b/extraplugins/table/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java
index 5c9201287ce..ec321760dad 100644
--- a/extraplugins/table/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLFeatureCellEditorConfig.java
+++ b/extraplugins/table/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

Back to the top