Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2016-02-12 08:27:31 +0000
committerGerrit Code Review @ Eclipse.org2016-04-28 15:46:09 +0000
commit17f3e371c6bbcd29358e61813fc9f916823ff58d (patch)
tree36cb2c96a552e820ae6be38e88ec2e85d17ece31
parent0ec28fa6dce52335f9154e8920ae4305def34ec0 (diff)
downloadorg.eclipse.papyrus-17f3e371c6bbcd29358e61813fc9f916823ff58d.tar.gz
org.eclipse.papyrus-17f3e371c6bbcd29358e61813fc9f916823ff58d.tar.xz
org.eclipse.papyrus-17f3e371c6bbcd29358e61813fc9f916823ff58d.zip
Bug 486535: [Table] Sorting a column while editing a cell does not close
edition, causing confusion https://bugs.eclipse.org/bugs/show_bug.cgi?id=486535 Use the new version of the active cell editor managed by nattable. Change-Id: I3f0d5791c96c0d4ecf6f09e4e3535802106977b9 Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@all4tec.net>
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/handler/TransactionalEditCellCommandHandler.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/handler/TransactionalEditCellCommandHandler.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/handler/TransactionalEditCellCommandHandler.java
index fa5907a6391..aa2e550e3ba 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/handler/TransactionalEditCellCommandHandler.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/handler/TransactionalEditCellCommandHandler.java
@@ -23,6 +23,7 @@ import org.eclipse.nebula.widgets.nattable.NatTable;
import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
import org.eclipse.nebula.widgets.nattable.config.IEditableRule;
import org.eclipse.nebula.widgets.nattable.edit.ActiveCellEditorRegistry;
+import org.eclipse.nebula.widgets.nattable.edit.CellEditorCreatedEvent;
import org.eclipse.nebula.widgets.nattable.edit.EditConfigAttributes;
import org.eclipse.nebula.widgets.nattable.edit.EditTypeEnum;
import org.eclipse.nebula.widgets.nattable.edit.InlineEditHandler;
@@ -121,7 +122,8 @@ public class TransactionalEditCellCommandHandler extends TransactionalCommandHan
cellEditor.addEditorControlListeners();
addScrollListener(cellEditor);
- ActiveCellEditorRegistry.registerActiveCellEditor(cellEditor);
+
+ layer.fireLayerEvent(new CellEditorCreatedEvent(cellEditor));
}
// Command succeeded but should not appear on the undo stack because we haven't completed an edit (only activated the cell editor),

Back to the top