Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2013-10-17 03:15:43 -0400
committervlorenzo2013-10-17 03:15:43 -0400
commit1734f2194bb1cbe8e766f72dde299c621d1e4dc5 (patch)
tree85fb71f93a107ab3f427c63f1ed87d17f5ebd70a /extraplugins
parent2510711e6871542910d2ea1f56e1778560b8107e (diff)
downloadorg.eclipse.papyrus-1734f2194bb1cbe8e766f72dde299c621d1e4dc5.tar.gz
org.eclipse.papyrus-1734f2194bb1cbe8e766f72dde299c621d1e4dc5.tar.xz
org.eclipse.papyrus-1734f2194bb1cbe8e766f72dde299c621d1e4dc5.zip
419662: [Table 2] Cells are read only when the label column for row
header is hidden https://bugs.eclipse.org/bugs/show_bug.cgi?id=419662
Diffstat (limited to 'extraplugins')
-rw-r--r--extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java b/extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java
index 2bd4fad8380..aa5b9492788 100644
--- a/extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java
+++ b/extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java
@@ -470,18 +470,8 @@ public abstract class AbstractNattableWidgetManager implements INattableModelMan
@Override
public boolean isEditable(final int columnIndex, final int rowIndex) {
- // final Object row;
- // final Object column;
- final Object rowElement = AbstractNattableWidgetManager.this.rowHeaderDataProvider.getDataValue(1, rowIndex);
- final Object columnElement = AbstractNattableWidgetManager.this.columnHeaderDataProvider.getDataValue(columnIndex, 1);
- // if(AbstractNattableWidgetManager.this.table.isInvertAxis()) {
- // row = columnElement;
- // column = rowElement;
- // } else {
- // row = rowElement;
- // column = columnElement;
- // }
-
+ final Object rowElement = getRowElement(rowIndex);
+ final Object columnElement = getColumnElement(columnIndex);
return CellManagerFactory.INSTANCE.isCellEditable(columnElement, rowElement);
}
});

Back to the top