aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sudol2013-09-16 09:55:58 (EDT)
committerGerrit Code Review @ Eclipse.org2013-09-19 14:05:29 (EDT)
commit1dbef3947205de86431b201934a3c7cf70f36c5a (patch)
tree85ce985bd3b0b2606b6b023e5da53994caf827af
parent507334decafb8bde45cdd4c1f562cc85e6ee004a (diff)
downloadeclipse.platform.ui-1dbef3947205de86431b201934a3c7cf70f36c5a.zip
eclipse.platform.ui-1dbef3947205de86431b201934a3c7cf70f36c5a.tar.gz
eclipse.platform.ui-1dbef3947205de86431b201934a3c7cf70f36c5a.tar.bz2
Bug 417093 - Legacy mode not backward compatiblerefs/changes/63/16463/2
Change-Id: I3d7b20266ad783e37464dc9def5fb84c72cbdc08 Signed-off-by: Wojciech Sudol <wojciech.sudol@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
index 39aa845..8bc4477 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
@@ -693,7 +693,9 @@ public class WBWRenderer extends SWTPartRenderer {
if (wbwModel instanceof MTrimmedWindow) {
Shell shell = (Shell) wbwModel.getWidget();
MTrimmedWindow tWindow = (MTrimmedWindow) wbwModel;
- for (MTrimBar trimBar : tWindow.getTrimBars()) {
+ List<MTrimBar> trimBars = new ArrayList<MTrimBar>(
+ tWindow.getTrimBars());
+ for (MTrimBar trimBar : trimBars) {
renderer.createGui(trimBar, shell, wbwModel.getContext());
// bug 387161: hack around that createGui(e, parent, context)
// does not reparent the element widget to the