public static Image getImageForAutoImportTypeInfo(IInfo info) {
switch (info.getType()) {
case IInfo.CLASS_WITH_IMPORT_TYPE:
if (autoImportClassWithImportType == null) {
synchronized (lock) {
ImageCache imageCache = org.python.pydev.plugin.PydevPlugin.getImageCache();
autoImportClassWithImportType = imageCache.getImageDecorated(UIConstants.CLASS_ICON,
UIConstants.CTX_INSENSITIVE_DECORATION_ICON,
ImageCache.DECORATION_LOCATION_BOTTOM_RIGHT);
}
}
return autoImportClassWithImportType;
case IInfo.METHOD_WITH_IMPORT_TYPE:
if (autoImportMethodWithImportType == null) {
synchronized (lock) {
ImageCache imageCache = org.python.pydev.plugin.PydevPlugin.getImageCache();
autoImportMethodWithImportType = imageCache.getImageDecorated(UIConstants.METHOD_ICON,
UIConstants.CTX_INSENSITIVE_DECORATION_ICON,
ImageCache.DECORATION_LOCATION_BOTTOM_RIGHT);
}
}
return autoImportMethodWithImportType;
case IInfo.ATTRIBUTE_WITH_IMPORT_TYPE:
if (autoImportAttributeWithImportType == null) {
synchronized (lock) {
ImageCache imageCache = org.python.pydev.plugin.PydevPlugin.getImageCache();
autoImportAttributeWithImportType = imageCache.getImageDecorated(UIConstants.PUBLIC_ATTR_ICON,
UIConstants.CTX_INSENSITIVE_DECORATION_ICON,
ImageCache.DECORATION_LOCATION_BOTTOM_RIGHT);
}
}
return autoImportAttributeWithImportType;
case IInfo.MOD_IMPORT_TYPE:
if (autoImportModImportType == null) {
synchronized (lock) {
ImageCache imageCache = org.python.pydev.plugin.PydevPlugin.getImageCache();
autoImportModImportType = imageCache.getImageDecorated(UIConstants.FOLDER_PACKAGE_ICON,
UIConstants.CTX_INSENSITIVE_DECORATION_ICON,
ImageCache.DECORATION_LOCATION_BOTTOM_RIGHT);
}
}
return autoImportModImportType;