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 a69bb235f7e0d47fa7e450a15638b4272b07ed8d..f059fa8054630f1c7ccd8017a2f7d19cfa86f11f 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);