Object icon service
- Last UpdatedJul 23, 2024
- 1 minute read
The IDE provides a convenient and uniform means for all extensions to get AutomationObject icon and its superimposed object status icons for a given galaxy object, in the form of a service called “IaaImageService”. Superimposed object status icons include, error/warning and various deploy related statuses. Extensions can also get object checked out status icons separately. Following is an example of how extensions would use this functionality.
private Image GetObjectImage(IGObjectInfo goInfo, ref Image imgExt)
{
Image imgObject = null;
IaaImageService imgsvc =
m_site.Services[typeof(IaaImageService)] as IaaImageService;
if(imgsvc != null && goInfo != null)
{
string strImageId;
imgObject = imgsvc.GetImage(goInfo, out strImageId, true);
if(imgExt != null)
imgExt =
imgsvc.GetExtendedEffect(ExtendedEffect.CheckedOutByMe);
}
return imgObject;
}