Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java b/sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java
index 6750f61de06..470446bbbfb 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/NattableModelManager.java
@@ -723,15 +723,15 @@ public class NattableModelManager extends AbstractNattableWidgetManager implemen
}
public void reorderColumnsElements(final IAxis axisToMove, final int newIndex) {
- final EditingDomain domain = getEditingDomain(axisToMove);
- final Command cmd = MoveCommand.create(getEditingDomain(axisToMove), this.columnProvider, NattableaxisproviderPackage.eINSTANCE.getDefaultAxisProvider_Axis(), axisToMove, newIndex);
+ final EditingDomain domain = getEditingDomain(table.getContext());
+ final Command cmd = MoveCommand.create(getEditingDomain(table.getContext()), this.columnProvider, NattableaxisproviderPackage.eINSTANCE.getDefaultAxisProvider_Axis(), axisToMove, newIndex);
domain.getCommandStack().execute(cmd);
}
// not tested
public void reorderRowElements(final IAxis axisToMove, final int newIndex) {
- final EditingDomain domain = getEditingDomain(axisToMove);
- final Command cmd = MoveCommand.create(getEditingDomain(axisToMove), this.rowProvider, NattableaxisproviderPackage.eINSTANCE.getDefaultAxisProvider_Axis(), axisToMove, newIndex);
+ final EditingDomain domain = getEditingDomain(table.getContext());
+ final Command cmd = MoveCommand.create(getEditingDomain(table.getContext()), this.rowProvider, NattableaxisproviderPackage.eINSTANCE.getDefaultAxisProvider_Axis(), axisToMove, newIndex);
domain.getCommandStack().execute(cmd);
}

Back to the top