From 3dfd9b8c65b1ce510cc54a12abc164029ab58709 Mon Sep 17 00:00:00 2001
From: Florian Hoelzl <hoelzl@fortiss.org>
Date: Wed, 22 Jun 2011 14:03:35 +0000
Subject: [PATCH] fixed library view icon access

---
 .../tooling/kernel/ui/internal/views/LibraryView.java  | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/views/LibraryView.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/views/LibraryView.java
index a69bb235f..f059fa805 100644
--- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/views/LibraryView.java
+++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/views/LibraryView.java
@@ -173,12 +173,10 @@ public class LibraryView extends ViewPart {
 			if (element instanceof Prototype) {
 				Prototype prototype = (Prototype) element;
 				// delegate to the model element handlers
-				if (element instanceof EObject) {
-					IModelElementHandler<EObject> handler = IModelElementService.INSTANCE
-							.getModelElementHandler(prototype.getPrototype());
-					if (handler != null) {
-						return handler.getIcon();
-					}
+				IModelElementHandler<EObject> handler = IModelElementService.INSTANCE
+						.getModelElementHandler(prototype.getPrototype());
+				if (handler != null) {
+					return handler.getIcon();
 				}
 			}
 			return super.getImage(element);
-- 
GitLab