{
@Override
public String getText(Object element)
{
Install i = (Install) element;
IOSGiInstallType type = i.getType();
if (type == null)
{
return "<invalid> [" + i.location + "]";
}
else
{
return type.getName() + " " + type.getVersion() + " [" + i.location
+ "]";
}
}
@Override
public Image getImage(Object element)
{
Install i = (Install) element;
IOSGiInstallType type = i.getType();
if (type == null)
{
return null;
}
else
{
return type.getIcon();
}
}
});
viewer.addSelectionChangedListener(new ISelectionChangedListener()