Skip to content
Snippets Groups Projects
Commit 3dfd9b8c authored by Florian Hölzl's avatar Florian Hölzl
Browse files

fixed library view icon access

parent 2be3d4a4
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment