Revision: 6211 http://sourceforge.net/p/jump-pilot/code/6211 Author: michaudm Date: 2019-12-31 17:25:30 +0000 (Tue, 31 Dec 2019) Log Message: ----------- Speed up layers with theming style
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/workbench/ui/TreeLayerNamePanel.java Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/TreeLayerNamePanel.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/workbench/ui/TreeLayerNamePanel.java 2019-12-31 16:46:43 UTC (rev 6210) +++ core/trunk/src/com/vividsolutions/jump/workbench/ui/TreeLayerNamePanel.java 2019-12-31 17:25:30 UTC (rev 6211) @@ -108,10 +108,14 @@ // Workaround for Java Bug 4199956 "JTree shows container can be // expanded - even when empty", posted by bertrand.allo in the Java Bug // Database. [Jon Aquino] + // 2019-12-31 : cannot see the effect of the bug, even if it is tagged + // won't fix in the bug database. Removing the second part of the or + // condition saves a lot of time in some situation (ex. copy/paste a + // layer with theming style having a lot of values) [mmichaud] @Override public boolean hasBeenExpanded(TreePath path) { - return super.hasBeenExpanded(path) - || !this.getModel().isLeaf(path.getLastPathComponent()); + return super.hasBeenExpanded(path); + //|| !this.getModel().isLeaf(path.getLastPathComponent()); } // [ede 12.2012] only allow plain cursor keys. during adding shortcuts it _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel