X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.nattable%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fnattable%2FKeyToSelectionAdapter.java;fp=bundles%2Forg.simantics.browsing.ui.nattable%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fnattable%2FKeyToSelectionAdapter.java;h=daf28f5d44bd9e40e33e1c8cb2faa37b0cec5a57;hp=9d43c351fce553db9c5783a9a41063e53ff0284a;hb=0b471805f017da83d715a0d8409f53bdd009d31e;hpb=145a2884933f2ffdd48d6835729e58f1152d274e diff --git a/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/KeyToSelectionAdapter.java b/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/KeyToSelectionAdapter.java index 9d43c351f..daf28f5d4 100644 --- a/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/KeyToSelectionAdapter.java +++ b/bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/KeyToSelectionAdapter.java @@ -14,9 +14,6 @@ import org.simantics.utils.ui.AdaptionUtils; /** * Selects tree items based on pressed key events.

* - * The default implementation of SWT.Tree (Windows?) uses only the the first column when matching the items.

- * - * This implementation checks all columns. Override

matches(), matchesColumn()
for customized behavior.

* * @author Marko Luukkainen * @@ -58,8 +55,6 @@ public class KeyToSelectionAdapter extends KeyAdapter { prevEvent = e.time; matcher = matcher += Character.toString(e.character); - - //TreeItem item = null; NatTable tree = explorer.getControl(); columns = explorer.getColumns().length; @@ -77,10 +72,6 @@ public class KeyToSelectionAdapter extends KeyAdapter { if (item != null) { explorer.select(item); explorer.show(item); -// tree.select(item); -// tree.showItem(item); - - } // without this the default handling would take over. e.doit = false; @@ -159,5 +150,4 @@ public class KeyToSelectionAdapter extends KeyAdapter { return false; } - }