Search in sources :

Example 1 with ComposedImage

use of org.eclipse.emf.edit.provider.ComposedImage in project InformationSystem by ObeoNetwork.

the class ViewContainerReferenceItemProvider method getImage.

/**
 * This returns ViewContainerReference.gif.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
@Override
public Object getImage(Object object) {
    ViewContainerReference viewContainerReference = (ViewContainerReference) object;
    if (viewContainerReference.getViewContainer() != null) {
        Object viewContainerImage = getAdapterFactoryLabelProvider().getImage(viewContainerReference.getViewContainer());
        // Add an overlay to indicate it's a reference to this ViewContainer
        List<Object> images = new ArrayList<Object>(2);
        images.add(viewContainerImage);
        images.add(getResourceLocator().getImage("full/ovr16/ViewContainerReferenceOverlay"));
        Object viewContainerReferenceImage = new ComposedImage(images);
        return overlayImage(object, viewContainerReferenceImage);
    } else {
        return overlayImage(object, getResourceLocator().getImage("full/obj16/ViewContainerReference"));
    }
}
Also used : ComposedImage(org.eclipse.emf.edit.provider.ComposedImage) ViewContainerReference(org.obeonetwork.dsl.cinematic.view.ViewContainerReference) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 ComposedImage (org.eclipse.emf.edit.provider.ComposedImage)1 ViewContainerReference (org.obeonetwork.dsl.cinematic.view.ViewContainerReference)1