Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2014-03-13 13:26:43 +0000
committerVincent Lorenzo2014-03-13 13:26:43 +0000
commit2b0d2af622c6482b4a6109d12463c28f1374588a (patch)
tree6a97503907c79da066af0979987c1e2f67f34c38 /plugins/infra
parentbd68dba9719b7792da1e14b9c835623d2c389865 (diff)
downloadorg.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
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/TableSelectionProvider.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/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);

Back to the top