aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Rolka2013-11-26 11:39:18 (EST)
committerDaniel Rolka2013-11-26 11:39:18 (EST)
commit828ba48a951c4ce56ec1a72784d3274057f93260 (patch)
tree080415758dba877e1cc041238ef40717dce434cf
parenta670ec8283925660f1842660b166f345fc1ba349 (diff)
downloadeclipse.platform.ui-828ba48a951c4ce56ec1a72784d3274057f93260.zip
eclipse.platform.ui-828ba48a951c4ce56ec1a72784d3274057f93260.tar.gz
eclipse.platform.ui-828ba48a951c4ce56ec1a72784d3274057f93260.tar.bz2
Bug 391957 - [Contributions] ClassCastException with action sets:refs/changes/30/18830/2
OpaqueToolItemImpl cannot be cast to MTrimElement Change-Id: Id866e0cbbd55fd5dcf88a7579b3f37c8809cab52 Signed-off-by: Daniel Rolka <daniel.rolka@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
index 70828e6..dc61cf2 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
@@ -264,8 +264,8 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
* @see org.eclipse.jface.action.IContributionManager#find(java.lang.String)
*/
public IContributionItem find(String id) {
- MTrimElement el = (MTrimElement) modelService.find(id, window);
- if (el == null || !(el instanceof MToolBar))
+ MUIElement el = modelService.find(id, window);
+ if (!(el instanceof MToolBar))
return null;
final MToolBar model = (MToolBar) el;