-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Filter Mechanism for Target in Move Refactoring#18 #981
Conversation
To let user filter the projects or packages from a search bar in a move refactor dialog. Fixes vi-eclipse/Eclipse-JDT#18
I tested it and it's pretty slow on a very big WS (around 1800 plugins): almost 1 minute to input 2 characters in the search bar: Slow filter in move refactoring.zip |
Using Filter Class to filter out the tree
Fixing ui for search bar
Comments Reviewed. 1. Not Expanding tree on keystroke for search (saves processing) 2. Not trying to do the search filtering in JrtPackageFragments 3. Disabling the button on keystroke of search as everything is dis-selected
* Added Debounce on listener on search text
The idea behind filtering the tree: First Check if Search String is matching proj or any package of that proj -> yes -> Keep it open (for now) will filter a/c to package in another level -> No -> Remove the project entirely from the tree Then going down on package level check each package and remove any that doesn't match Analysis ------------------------------------ Search String: "org" Package Name: src -> Checking Upper level -> Dont Keep |
I just came across |
Sounds good. I can try that. |
Closing this PR, found already integrated solution with FilteredTree. New PR: #1246 |
To let user filter the projects or packages from a search bar in a move refactor dialog.
Fixes vi-eclipse/Eclipse-JDT#18
What it does
User can now search from the large tree of projects and packages to move the file to.
How to test
Go to any file, right click --> Refactor --> Move --> Dialog Box will open with a treeview of Project and Packages --> Type in the search box and see if the filters are working fine