| Summary: | redraw turned off to soon when selecting features | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Darin Wright <darin.eclipse> | ||||||||||
| Component: | UI | Assignee: | Ankur Sharma <ankur_sharma> | ||||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | curtis.windatt.public | ||||||||||
| Version: | 3.6 | Flags: | darin.eclipse:
review+
ankur_sharma: review+ |
||||||||||
| Target Milestone: | 3.6 RC2 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Darin Wright
Created attachment 168558 [details]
screen shot
Notice the trail as one drags the dialog around over the tree.
Created attachment 168879 [details]
Patch
+1 I will need one more +1. Curtis, plz review Created attachment 169007 [details]
Simpler Patch
Solves the reported problem by moving the setredraw calls.
Ankur, was your patch trying to accomplish more than fixing the redraw problem? There are a lot of changes in your patch that I didn't understand. I feel much better putting in a small change to fix the problem over a larger patch that could affect the behaviour of other buttons in the tab. The simpler patch doesn't solves all the problems. 1. It works only for Select Feature dialog. The validate and Add plug-ins buttons too open a dialog. They need to be handled too. 2. Also, when the show selected is checked, and then any of these dialogs is opened, we can see the tree getting unfiltered and then refiltered in background with scrollbar dancing. The previous patch addresses these issues too. All these are redraw related problems only. Created attachment 169031 [details] Updated Patch This patch fixes the problems mentioned in comment #7. We don't need to disable drawing for anything except adding new content to the tree. I see that your original patch did this using a boolean, but it is better to have the redraw cover the smallest possible area. If there is a mistake in the code or an exception occurs while redraw is off, the UI will look very broken. This patch could definitely use some more testing. I think that it is a safer solution than your original patch Ankur. +1 This one is good. +1. Applied/Fixed. Verified. |