Search in sources :

Example 1 with GroupHolder

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));
}
Also used : FeatureGroup(org.osate.aadl2.FeatureGroup) GroupHolder(org.osate.ba.aadlba.GroupHolder) ThreadGroup(org.osate.aadl2.ThreadGroup) NamedElement(org.osate.aadl2.NamedElement)

Aggregations

FeatureGroup (org.osate.aadl2.FeatureGroup)1 NamedElement (org.osate.aadl2.NamedElement)1 ThreadGroup (org.osate.aadl2.ThreadGroup)1 GroupHolder (org.osate.ba.aadlba.GroupHolder)1