Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2018-06-07 04:48:41 -0400
committervincent lorenzo2018-06-07 05:33:10 -0400
commitf3d01ecf07bd15805e41737a436e50d313b71e1e (patch)
tree8fb6c24dcba767d7c20106cd8c2a19f291d4d8f3
parentf22c706ed0127dbe11d1b2a45f864b6561243717 (diff)
downloadorg.eclipse.papyrus-f3d01ecf07bd15805e41737a436e50d313b71e1e.tar.gz
org.eclipse.papyrus-f3d01ecf07bd15805e41737a436e50d313b71e1e.tar.xz
org.eclipse.papyrus-f3d01ecf07bd15805e41737a436e50d313b71e1e.zip
Bug 535639: [Table] Single Datatype is not editable in table
Change-Id: I08ff2fa477c38c1a3d7524555e172532a75cab16 Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java
index 5c575a48270..eea9115b4eb 100644
--- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleDataTypeCellEditorConfiguration.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2016 CEA LIST.
+ * Copyright (c) 2016, 2018 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
@@ -10,7 +10,7 @@
* Contributors:
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
* Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 502533
- *
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - bug 535639
*****************************************************************************/
package org.eclipse.papyrus.uml.nattable.config;
@@ -35,6 +35,7 @@ import org.eclipse.uml2.uml.Type;
/**
* The cell editor for UML Single Datatype declared in the profile.
+ *
* @since 3.0
*/
public class UMLStereotypeSingleDataTypeCellEditorConfiguration implements ICellAxisConfiguration {
@@ -89,9 +90,10 @@ public class UMLStereotypeSingleDataTypeCellEditorConfiguration implements ICell
*/
@Override
public void configureCellEditor(final IConfigRegistry configRegistry, final Object axis, final String configLabel) {
+ final Object axisElement = AxisUtils.getRepresentedElement(axis);
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, new TextPainter(), DisplayMode.NORMAL, configLabel);
final INattableModelManager modelManager = configRegistry.getConfigAttribute(NattableConfigAttributes.NATTABLE_MODEL_MANAGER_CONFIG_ATTRIBUTE, DisplayMode.NORMAL, NattableConfigAttributes.NATTABLE_MODEL_MANAGER_ID);
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, new DatatypeDialogCellEditor(axis, modelManager.getTableAxisElementProvider()), DisplayMode.EDIT, configLabel);
+ configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, new DatatypeDialogCellEditor(axisElement, modelManager.getTableAxisElementProvider()), DisplayMode.EDIT, configLabel);
}
}

Back to the top