String nameValue = null;
String descValue = null;
boolean isActivated = true;
if (value instanceof PluginProxy) {
PluginProxy plugin = (PluginProxy) value;
iconValue = plugin.getPluginIcon();
if (iconValue != null) {
iconValue = new FixedSizeIcon(16, 16, iconValue);
}
descValue = plugin.getInfo().getDescription().replace('\n', ' ');
isActivated = plugin.isActivated();
nameValue = plugin.getInfo().getName() + " " + plugin.getInfo().getVersion();
} else if (value instanceof InternalPluginProxyIf) {
InternalPluginProxyIf plugin = (InternalPluginProxyIf) value;
nameValue = plugin.getName();
descValue = plugin.getButtonActionDescription().replace('\n', ' ');
iconValue = plugin.getIcon();
} else if (value instanceof TvDataServiceProxy) {
TvDataServiceProxy service = (TvDataServiceProxy) value;
nameValue = service.getInfo().getName() + " " + service.getInfo().getVersion();
descValue = HTMLTextHelper.convertHtmlToText(service.getInfo().getDescription()).replace('\n', ' ');
}