if ((t.eContainer() != null)
&& (t.eContainer() instanceof NamedElement))
description = ((NamedElement) t.eContainer()).getName();
}
if (elem instanceof TypedElement) {
TypedElement typedElem = (TypedElement) elem;
image_id = UiPlugin.getImage(UiPlugin.IMAGE_TYPE);
if (typedElem.getType() != null) {
if (typedElem.getType().getName() != null) {
description = typedElem.getType().getName();
}
if (typedElem.getType() instanceof PrimitiveType)
description = typedElem.getType().getClass()
.getSimpleName();
}
}
if (elem instanceof ContextualProperty)
image_id = UiPlugin.getImage(UiPlugin.IMAGE_PROPERTY);