Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2006-04-07 22:14:55 +0000
committerKevin Barnes2006-04-07 22:14:55 +0000
commit040791654e9227ddb0b6a9346b6037f4b98ccbf7 (patch)
tree2e90e3c2f34655c57614e7f2a83a4ce8a50827de
parent2ece01eda9fc3a7ac18ebbbf4feeb9a1cc0fe504 (diff)
downloadeclipse.platform.debug-040791654e9227ddb0b6a9346b6037f4b98ccbf7.tar.gz
eclipse.platform.debug-040791654e9227ddb0b6a9346b6037f4b98ccbf7.tar.xz
eclipse.platform.debug-040791654e9227ddb0b6a9346b6037f4b98ccbf7.zip
Bug 120200 - Stepping performance deteriorates for testcase with many variables
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java
index e8c75a38a..01f3f43fb 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java
@@ -869,19 +869,19 @@ public class AsynchronousTreeViewer extends AsynchronousViewer implements Listen
}
}
- protected boolean isVisible(Widget widget) {
+ protected boolean isVisible(Widget widget) {
if (widget instanceof Tree) {
return true;
} else {
- Rectangle treeBounds = getTree().getBounds();
- TreeItem item = (TreeItem) widget;
- Rectangle itemBounds = item.getBounds();
-
- if (itemBounds.y < 0 || itemBounds.y+itemBounds.height > treeBounds.height) {
- return false;
- } else {
- return true;
- }
+ Rectangle treeBounds = getTree().getBounds();
+ TreeItem item = (TreeItem) widget;
+ Rectangle itemBounds = item.getBounds();
+
+ if (itemBounds.height <= 0 || itemBounds.y < 0 || itemBounds.y > treeBounds.height) {
+ return false;
+ } else {
+ return true;
+ }
}
}

Back to the top