diff options
author | Vincent Lorenzo | 2014-03-13 13:26:43 +0000 |
---|---|---|
committer | Vincent Lorenzo | 2014-03-13 13:26:43 +0000 |
commit | 2b0d2af622c6482b4a6109d12463c28f1374588a (patch) | |
tree | 6a97503907c79da066af0979987c1e2f67f34c38 | |
parent | bd68dba9719b7792da1e14b9c835623d2c389865 (diff) | |
download | org.eclipse.papyrus-2b0d2af622c6482b4a6109d12463c28f1374588a.tar.gz org.eclipse.papyrus-2b0d2af622c6482b4a6109d12463c28f1374588a.tar.xz org.eclipse.papyrus-2b0d2af622c6482b4a6109d12463c28f1374588a.zip |
429964: [Table 2] Entering cell edition should not discard current selection
-rw-r--r-- | plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/TableSelectionProvider.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/TableSelectionProvider.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/TableSelectionProvider.java index 1b7aef2f42d..8c598d325eb 100644 --- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/TableSelectionProvider.java +++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/TableSelectionProvider.java @@ -84,7 +84,9 @@ public class TableSelectionProvider implements ISelectionProvider, IDisposable { this.selectionListener = new ILayerListener() {
public void handleLayerEvent(final ILayerEvent event) {
- calculateAndStoreNewSelection(event);
+ if (event instanceof ISelectionEvent) {
+ calculateAndStoreNewSelection(event);
+ }
}
};
this.selectionLayer.addLayerListener(this.selectionListener);
|