use of org.osate.ba.aadlba.GroupHolder in project osate2 by osate.
the class GroupHolderItemProvider method getImage.
/**
* This returns GroupHolder.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*/
@Override
public Object getImage(Object object) {
String imgFile = BehaviorElementItemProvider.OSATE_IMG_PATH;
GroupHolder holder = (GroupHolder) object;
NamedElement group = holder.getGroup();
if (group instanceof ThreadGroup)
imgFile += "ThreadGroup";
else if (group instanceof FeatureGroup)
imgFile += "FeatureGroup";
else // SubprogramGroup and SubprogramGroupAccess cases.
{
imgFile += "Subprogram";
}
return overlayImage(object, getResourceLocator().getImage(imgFile));
}
Aggregations