]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.nattable/src/org/simantics/browsing/ui/nattable/KeyToSelectionAdapter.java
Sync git svn branch with SVN repository r33345.
[simantics/platform.git] / bundles / org.simantics.browsing.ui.nattable / src / org / simantics / browsing / ui / nattable / KeyToSelectionAdapter.java
index 9d43c351fce553db9c5783a9a41063e53ff0284a..daf28f5d44bd9e40e33e1c8cb2faa37b0cec5a57 100644 (file)
@@ -14,9 +14,6 @@ import org.simantics.utils.ui.AdaptionUtils;
 /**\r
  * Selects tree items based on pressed key events.<p>\r
  * \r
- * The default implementation of SWT.Tree (Windows?) uses only the the first column when matching the items.<p>\r
- * \r
- * This implementation checks all columns. Override <pre>matches(), matchesColumn()</pre> for customized behavior.<p>\r
  * \r
  * @author Marko Luukkainen <marko.luukkainen@vtt.fi>\r
  *\r
@@ -58,8 +55,6 @@ public class KeyToSelectionAdapter extends KeyAdapter {
         prevEvent = e.time;\r
         matcher = matcher += Character.toString(e.character);\r
 \r
-        \r
-        //TreeItem item = null;\r
         NatTable tree = explorer.getControl();\r
         columns = explorer.getColumns().length;\r
         \r
@@ -77,10 +72,6 @@ public class KeyToSelectionAdapter extends KeyAdapter {
         if (item != null) {\r
                 explorer.select(item);\r
                 explorer.show(item);\r
-//                      tree.select(item);\r
-//                      tree.showItem(item);\r
-                \r
-                       \r
                 } \r
         // without this the default handling would take over.\r
         e.doit = false;\r
@@ -159,5 +150,4 @@ public class KeyToSelectionAdapter extends KeyAdapter {
                return false;\r
     }\r
 \r
-\r
 }\r