GenericDetail d = details.next();
if(d instanceof PhoneNumberDetail &&
!(d instanceof FaxDetail) &&
!(d instanceof PagerDetail))
{
PhoneNumberDetail pnd = (PhoneNumberDetail)d;
if(pnd.getNumber() != null &&
pnd.getNumber().length() > 0)
{
String localizedType = null;
if(d instanceof WorkPhoneDetail)
{
localizedType =
GuiActivator.getResources().
getI18NString(
"service.gui.WORK_PHONE");
}
else if(d instanceof MobilePhoneDetail)
{
localizedType =
GuiActivator.getResources().
getI18NString(
"service.gui.MOBILE_PHONE");
}
else
{
localizedType =
GuiActivator.getResources().
getI18NString(
"service.gui.PHONE");
}
tip.addLine(null, (pnd.getNumber() +
" (" + localizedType + ")"));
}
}
}