Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeMultiUMLIntegerCellEditorConfiguration.java')
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeMultiUMLIntegerCellEditorConfiguration.java86
1 files changed, 40 insertions, 46 deletions
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeMultiUMLIntegerCellEditorConfiguration.java b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeMultiUMLIntegerCellEditorConfiguration.java
index 50b5a303a5e..64da61616ae 100644
--- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeMultiUMLIntegerCellEditorConfiguration.java
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeMultiUMLIntegerCellEditorConfiguration.java
@@ -13,54 +13,48 @@
package org.eclipse.papyrus.uml.nattable.config;
-import org.eclipse.papyrus.infra.nattable.model.nattable.Table;
-import org.eclipse.papyrus.infra.nattable.utils.AxisUtils;
-import org.eclipse.papyrus.uml.nattable.utils.UMLTableUtils;
-import org.eclipse.papyrus.uml.tools.utils.PrimitivesTypesUtils;
-import org.eclipse.uml2.uml.DataType;
-import org.eclipse.uml2.uml.PrimitiveType;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.Type;
-
/**
* The cell editor configuration for the UML Stereotype multi UML integer value.
+ *
+ * @deprecated since 2.0, the super class works fine for DataType and Primitives Types
*/
-public class UMLStereotypeMultiUMLIntegerCellEditorConfiguration extends MultiIntegerCellEditorConfiguration {
-
- /**
- * The id of this editor.
- */
- private static final String ID = "org.eclipse.papyrus.uml.nattable.celleditor.configuration.UMLStereotypeMultiUMLIntegerCellEditorConfiguration.MultiEditor";//$NON-NLS-1$
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.uml.nattable.config.MultiIntegerCellEditorConfiguration#getConfigurationId()
- */
- @Override
- public String getConfigurationId() {
- return ID;
- }
+@Deprecated
+public class UMLStereotypeMultiUMLIntegerCellEditorConfiguration extends UMLStereotypeMultiIntegerCellEditorConfiguration {
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.uml.nattable.config.MultiIntegerCellEditorConfiguration#handles(org.eclipse.papyrus.infra.nattable.model.nattable.Table, java.lang.Object)
- */
- @Override
- public boolean handles(final Table table, final Object axisElement) {
- boolean result = false;
- final String id = AxisUtils.getPropertyId(axisElement);
- if (id != null && id.startsWith(UMLTableUtils.PROPERTY_OF_STEREOTYPE_PREFIX)) {
- Property prop = UMLTableUtils.getRealStereotypeProperty(table.getContext(), id);
- if (prop != null && prop.isMultivalued()) {
- Type type = prop.getType();
- if (type instanceof DataType) {
- result = type instanceof PrimitiveType && PrimitivesTypesUtils.UML_INTEGER.equals(type.getName());
- }
- }
- }
- return result;
- }
+ // /**
+ // * The id of this editor.
+ // */
+ // private static final String ID = "org.eclipse.papyrus.uml.nattable.celleditor.configuration.UMLStereotypeMultiUMLIntegerCellEditorConfiguration.MultiEditor";//$NON-NLS-1$
+ //
+ //
+ // /**
+ // * {@inheritDoc}
+ // *
+ // * @see org.eclipse.papyrus.uml.nattable.config.MultiIntegerCellEditorConfiguration#getConfigurationId()
+ // */
+ // @Override
+ // public String getConfigurationId() {
+ // return ID;
+ // }
+ //
+ // /**
+ // * {@inheritDoc}
+ // *
+ // * @see org.eclipse.papyrus.uml.nattable.config.MultiIntegerCellEditorConfiguration#handles(org.eclipse.papyrus.infra.nattable.model.nattable.Table, java.lang.Object)
+ // */
+ // @Override
+ // public boolean handles(final Table table, final Object axisElement) {
+ // boolean result = false;
+ // final String id = AxisUtils.getPropertyId(axisElement);
+ // if (id != null && id.startsWith(UMLTableUtils.PROPERTY_OF_STEREOTYPE_PREFIX)) {
+ // Property prop = UMLTableUtils.getRealStereotypeProperty(table.getContext(), id);
+ // if (prop != null && prop.isMultivalued()) {
+ // Type type = prop.getType();
+ // if (type instanceof DataType) {
+ // result = type instanceof PrimitiveType && PrimitivesTypesUtils.UML_INTEGER.equals(type.getName());
+ // }
+ // }
+ // }
+ // return result;
+ // }
}

Back to the top