-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use edit mode to toggle checkboxes in the filter tree
Edit mode has assumptions about the selection mode which are hard to overcome, and, potentially, may cause other issues. This CL changes toggle handling to a solution that just tracks clicks on checkboxes. There is an extra layout to determine where checkbox is, but it should be fast and only happen for the filter being toggled - not that editor solution is free from this as well. Another crucial piece is to use mutable tree nodes in the tree model. The selection handling keeps track of some TreePath instances and doesn't update them when the underlying model changes. Immutable filter instances were part of these TreePath, so enabling/disabling the filter (which replaces the immutable instance in the model) rendered these paths invalid, breaking selection tracking. Issue: fixes #384, fixes #385, fixes #386
- Loading branch information
Showing
16 changed files
with
661 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 0 additions & 94 deletions
94
src/name/mlopatkin/andlogview/ui/filtertree/FilterNodeEditor.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.