diff options
author | Stephan Leicht | 2011-08-05 13:58:25 +0000 |
---|---|---|
committer | Stephan Leicht | 2011-08-05 13:58:25 +0000 |
commit | 4359b9cacaabc074effca9a3e3976ad5aea4b791 (patch) | |
tree | e285d60c2869b6b69292f20d5750aed1fb6141b5 | |
parent | 10db3a2fab03ce57fea75ac9b783d97540d1287f (diff) | |
download | org.eclipse.scout.rt-4359b9cacaabc074effca9a3e3976ad5aea4b791.tar.gz org.eclipse.scout.rt-4359b9cacaabc074effca9a3e3976ad5aea4b791.tar.xz org.eclipse.scout.rt-4359b9cacaabc074effca9a3e3976ad5aea4b791.zip |
RESOLVED - bug 353963: SwingScoutTree Bad performance when building a large JTree.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=353963
-rw-r--r-- | org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/ext/JTreeEx.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/ext/JTreeEx.java b/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/ext/JTreeEx.java index 4742ad43a3..a0023e39db 100644 --- a/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/ext/JTreeEx.java +++ b/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/ext/JTreeEx.java @@ -17,6 +17,7 @@ import java.awt.Point; import java.awt.Rectangle;
import java.awt.dnd.DropTarget;
import java.awt.event.MouseEvent;
+import java.util.Enumeration;
import javax.swing.BorderFactory;
import javax.swing.JTree;
@@ -61,6 +62,15 @@ public class JTreeEx extends JTree { ToolTipManager.sharedInstance().registerComponent(this);
}
+ //Performance optimization. See: http://hameister.org/JavaSwingJTreePerformance.html
+ //the plaf library calls this method to update the expanded state of a path.
+ //However, the implementation in JTree is very slow, and there is probably no use
+ //for this functionality in Scout.
+ @Override
+ public Enumeration<TreePath> getExpandedDescendants(final TreePath path) {
+ return null;
+ }
+
/**
* workaround for bug in swing when using custom tooltips
*/
|