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/UMLStereotypeSingleUMLBooleanCellEditorConfiguration.java')
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleUMLBooleanCellEditorConfiguration.java83
1 files changed, 37 insertions, 46 deletions
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleUMLBooleanCellEditorConfiguration.java b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleUMLBooleanCellEditorConfiguration.java
index fd126128d8a..4bce132d611 100644
--- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleUMLBooleanCellEditorConfiguration.java
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/config/UMLStereotypeSingleUMLBooleanCellEditorConfiguration.java
@@ -13,55 +13,46 @@
package org.eclipse.papyrus.uml.nattable.config;
-import org.eclipse.papyrus.infra.emf.nattable.celleditor.config.SingleBooleanCellEditorConfiguration;
-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 single UML boolean value.
+ *
+ * @deprecated since 2.0, the super class works fine for Boolean DataType and UML Primitives Types, called Boolean
*/
-public class UMLStereotypeSingleUMLBooleanCellEditorConfiguration extends SingleBooleanCellEditorConfiguration {
-
- /**
- * The id of this editor.
- */
- private static final String ID = "org.eclipse.papyrus.uml.nattable.celleditor.configuration.UMLStereotypeSingleUMLBooleanCellEditorConfiguration.CheckBox";//$NON-NLS-1$
-
+@Deprecated
+public class UMLStereotypeSingleUMLBooleanCellEditorConfiguration extends UMLStereotypeMultiBooleanCellEditorConfiguration {
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.infra.emf.nattable.celleditor.config.SingleBooleanCellEditorConfiguration#getConfigurationId()
- */
- @Override
- public String getConfigurationId() {
- return ID;
- }
+ // private static final String ID = "org.eclipse.papyrus.uml.nattable.celleditor.configuration.UMLStereotypeSingleUMLBooleanCellEditorConfiguration.CheckBox";//$NON-NLS-1$
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.infra.emf.nattable.celleditor.config.SingleBooleanCellEditorConfiguration#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_BOOLEAN.equals(type.getName());
- }
- }
- }
- return result;
- }
+ //
+ //
+ // /**
+ // * {@inheritDoc}
+ // *
+ // * @see org.eclipse.papyrus.infra.emf.nattable.celleditor.config.SingleBooleanCellEditorConfiguration#getConfigurationId()
+ // */
+ // @Override
+ // public String getConfigurationId() {
+ // return ID;
+ // }
+ //
+ // /**
+ // * {@inheritDoc}
+ // *
+ // * @see org.eclipse.papyrus.infra.emf.nattable.celleditor.config.SingleBooleanCellEditorConfiguration#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_BOOLEAN.equals(type.getName());
+ // }
+ // }
+ // }
+ // return result;
+ // }
}

Back to the top