Community
Participate
Working Groups
Created attachment 287999 [details] Sample View Project Conditions: 1. Windows only 2. Eclipse Light or Dark Theme 3. A View with a TreeViewer that has drag support Steps to reproduce: 1. Run a child Eclipse instance with the attached simple View project. 2. Select a tree item in the Sample View 3. Select another View in the workbench 4. So steps (2) and (3) enough times to see the behaviour When focus is lost and regained, the Tree does not paint all tree items. If the following line in SampleView is commented out, it's OK: addDragSupport(); If the theme is changed to "Classic" or "System" it's also OK. Some combination of Windows, a Theme and Drag support is causing this, but I don't know what.
Created attachment 288000 [details] Screenshot of correct tree
Created attachment 288001 [details] Screenshot of unpainted tree
D'oh! I forgot to mention the most important factor here in Eclipse: Window -> Appearance -> Hide Toolbar This only happens if the main Toolbar is hidden.
(In reply to Phil Beauvoir from comment #3) > D'oh! I forgot to mention the most important factor here in Eclipse: > > Window -> Appearance -> Hide Toolbar > > This only happens if the main Toolbar is hidden. I guess toolbar, if shown, triggers some extra updates on view sselections. Just wondering : does it work if themes are completely disabled? In that case there should be not so many repaints.
(In reply to Andrey Loskutov from comment #4) > (In reply to Phil Beauvoir from comment #3) > > D'oh! I forgot to mention the most important factor here in Eclipse: > > > > Window -> Appearance -> Hide Toolbar > > > > This only happens if the main Toolbar is hidden. > > I guess toolbar, if shown, triggers some extra updates on view sselections. > > Just wondering : does it work if themes are completely disabled? In that > case there should be not so many repaints. Yep, if themes are completely disabled it works.
But very strange that adding viewer.addDragSupport() triggers the problem.
Very old known issue, which is really messing up the view. I did analyze it half a year ago, but still needs someone with time and priority to fix the issue. *** This bug has been marked as a duplicate of bug 376936 ***