aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Roberts2011-10-21 13:50:49 (EDT)
committerRemy Suen2011-10-21 13:50:49 (EDT)
commit9b971fcf650e851e6b77b254755344603b7ececd (patch)
treef2971547bc2b95b6a73ae726729733e7537427a0
parent771ffa4adf120a2eda06e58d9aeaa9328437878d (diff)
downloadeclipse.platform.ui-9b971fcf650e851e6b77b254755344603b7ececd.zip
eclipse.platform.ui-9b971fcf650e851e6b77b254755344603b7ececd.tar.gz
eclipse.platform.ui-9b971fcf650e851e6b77b254755344603b7ececd.tar.bz2
Bug 360685 [Compatibility] Saved perspectives lose tool item image afterv20111021-1750
workspace restart
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveDescriptor.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveDescriptor.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveDescriptor.java
index 2036d4c..b89ca0b 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveDescriptor.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveDescriptor.java
@@ -53,8 +53,7 @@ public class PerspectiveDescriptor implements IPerspectiveDescriptor,
this.label = label;
if (originalDescriptor != null) {
this.originalId = originalDescriptor.getOriginalId();
- // Direct member access by design
- this.image = originalDescriptor.image;
+ this.image = originalDescriptor.getImageDescriptor();
this.pluginId = originalDescriptor.getPluginId();
this.hasCustomDefinition = true;
}