reachsaurabh / show-me-password-sql-developer

Automatically exported from code.google.com/p/show-me-password-sql-developer
0 stars 0 forks source link

Filtering issues #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Current filter only filter on SID and not connection name 
also it's not case insensitive

Fix : Regexfilter not used as expected.
Replace filter this way to match all columns
sorter.setRowFilter(RowFilter.regexFilter("(?i)" + 
txtFilter.getText(),0,1,2,3,4,5));

2. It's the previous text entered that is used to filter
Fix : replace keyTyped by keyReleased
(found here : 
http://stackoverflow.com/questions/6591141/java-textfield-gettext-returns-previo
us-string-value)

Fix tested and attached

PS : Thanks for the great job on this plugin

Original issue reported on code.google.com by aurel...@pernoud.org on 21 Mar 2013 at 4:14

Attachments:

GoogleCodeExporter commented 9 years ago
Another update while I'm at it.. By default let's sort on connection name, so 
nice when searching ;-)

sorter = new TableRowSorter<TableModel>(model);
        // by default sort on connection_name asc
        List<RowSorter.SortKey> sortKeys = new ArrayList<RowSorter.SortKey>();
        sortKeys.add(new RowSorter.SortKey(0, SortOrder.ASCENDING));
        sorter.setSortKeys(sortKeys);
        table.setRowSorter(sorter);

Original comment by aurel...@pernoud.org on 21 Mar 2013 at 4:26

Attachments:

GoogleCodeExporter commented 9 years ago
thanks, for your report, it will be in next release;)

Original comment by tfrastia on 26 Aug 2013 at 8:00

GoogleCodeExporter commented 9 years ago

Original comment by tfrastia on 30 Aug 2013 at 6:32