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"));
}
}
Aggregations