Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #228397 +++ We could enable optimizations that Martin implemented in one of the patches on bug 228397, since this one was fixed recently: Bug 228695 Measure event always comes before an Erase/Paint event on Mac and Windows, but not on GTK https://bugs.eclipse.org/bugs/show_bug.cgi?id=228695
Hitesh is now responsible for watching bugs in the [Viewers] component area.
Created attachment 172445 [details] Fix (catch up with bug 228695) Catches up with bug 228695. I tested this on our GTK machine via VNC, but it would be good if someone who really works on Linux could test this too. The caches in itemOfLastMeasure and elementOfLastMeasure actually cause temporary leaks out in the field. E.g. when you run a JUnit test and then clear the history, the fields still reference the last painted element in the tree, and thereby leak the whole TestRunSession until the next test is started. After this, the last workaround in StyledCellLabelProvider is for bug 228376.
Bug 305843 comment 8 confirms that this is fixed under Linux in 3.6, so I've released the fix to HEAD. Keeping this bug open for bug 228376.
Created attachment 192492 [details] Fix 2 (catch up with bug 228376) Is good on Windows 7, need to test other platforms.
GTK and Cocoa are also good. Released Fix 2 to HEAD.