aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Moffatt2013-07-15 15:41:46 (EDT)
committerEric Moffatt2013-07-17 11:35:00 (EDT)
commitd46d127e95f36c08666d5d080ce3cfbfab5142e8 (patch)
treef6259cff84739a971e6809574e6e7dc1b044bd6f
parent38ea5984944342cee3ca93522ac2dc1ec6652950 (diff)
downloadeclipse.platform.ui-d46d127e95f36c08666d5d080ce3cfbfab5142e8.zip
eclipse.platform.ui-d46d127e95f36c08666d5d080ce3cfbfab5142e8.tar.gz
eclipse.platform.ui-d46d127e95f36c08666d5d080ce3cfbfab5142e8.tar.bz2
Fix for Bug 412869 - Creating a part from PartDescriptor does not copy
over persistedState collection Change-Id: Ib7e2f1c00df9393383b6d3f2e69092ea5b7527f5
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
index aef4797..2faa358 100644
--- a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
@@ -676,6 +676,7 @@ public class PartServiceImpl implements EPartService {
part.setTooltip(descriptor.getTooltip());
part.getHandlers().addAll(EcoreUtil.copyAll(descriptor.getHandlers()));
part.getTags().addAll(descriptor.getTags());
+ part.getPersistedState().putAll(descriptor.getPersistedState());
part.getBindingContexts().addAll(descriptor.getBindingContexts());
return part;
}