Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2013-09-06 11:20:37 +0000
committerVincent Lorenzo2013-09-09 08:11:23 +0000
commit08affe02de8ee362ff59784a08389cb83cc8b3b7 (patch)
treeb99e7b48bf193bbf05f047659c6c431465904803 /extraplugins
parent695be412ca4f09b47441b777cdd50e8c5e1bc34a (diff)
downloadorg.eclipse.papyrus-08affe02de8ee362ff59784a08389cb83cc8b3b7.tar.gz
org.eclipse.papyrus-08affe02de8ee362ff59784a08389cb83cc8b3b7.tar.xz
org.eclipse.papyrus-08affe02de8ee362ff59784a08389cb83cc8b3b7.zip
414124: [Table 2] The user must be able to sort rows selecting columns
headers https://bugs.eclipse.org/bugs/show_bug.cgi?id=414124 Move the line setAxisComparator in the method InvertAxis to avoid bug during the refresh of the invert axis action
Diffstat (limited to 'extraplugins')
-rw-r--r--extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java b/extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java
index 9cbbf78d252..d8a4c9331d6 100644
--- a/extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java
+++ b/extraplugins/table/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java
@@ -422,7 +422,6 @@ public class NattableModelManager extends AbstractNattableWidgetManager implemen
public void invertJavaObject() {
getRowSortModel().clear();//we clear the sort model
- this.rowManager.setAxisComparator(null);
AbstractAxisProvider newColumProvider = this.rowProvider;
AbstractAxisProvider newRowProvider = this.columnProvider;
List<Object> newVerticalElementList = this.horizontalElements;
@@ -438,6 +437,9 @@ public class NattableModelManager extends AbstractNattableWidgetManager implemen
NattableModelManager.this.rowManager = newRowManager;
NattableModelManager.this.columnManager = newColumnManager;
+ this.rowManager.setAxisComparator(null);
+ this.columnManager.setAxisComparator(null);
+
updateToggleActionState();
configureNatTable();
refreshNatTable();

Back to the top