aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sudol2013-09-12 08:49:12 (EDT)
committerGerrit Code Review @ Eclipse.org2013-09-12 08:56:36 (EDT)
commit0af425db7160e96d988b054781258c2fb0d76e10 (patch)
tree26c407437fc19b7859164090dee38f6e8ed7829b
parent087a045bec3db62fffbaa659f2592f31d497085e (diff)
downloadeclipse.platform.ui-0af425db7160e96d988b054781258c2fb0d76e10.zip
eclipse.platform.ui-0af425db7160e96d988b054781258c2fb0d76e10.tar.gz
eclipse.platform.ui-0af425db7160e96d988b054781258c2fb0d76e10.tar.bz2
Bug 416773 - Legacy mode not backward compatibleI20130912-2000refs/changes/62/16362/2
Change-Id: Ic99ed4e12661a4046845605906bbf4224e538e55 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 57b403b..6eb722f 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
@@ -599,7 +599,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