diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java index 6122d2b0d..08819c4c5 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java @@ -928,8 +928,8 @@ private void initButtonsPanel(UIContact uiContact) WebDetailsListener webDetailsListener = new WebDetailsListener(treeNode, webButton, uiContact); - List dets = - getWebPageDetails(uiContact, webDetailsListener, true); + List dets = + getURLDetails(uiContact, webDetailsListener, true); if(dets != null && dets.size() > 0) { x += addButton(webButton, ++gridX, x, false); @@ -1533,9 +1533,9 @@ public void detailsRetrieved(Iterator details) { GenericDetail d = details.next(); - if(d instanceof WebPageDetail) + if(d instanceof URLDetail) { - final WebPageDetail webd = (WebPageDetail)d; + final URLDetail webd = (URLDetail)d; if(webd.getDetailValue() != null) { SwingUtilities.invokeLater(new Runnable() @@ -1564,7 +1564,7 @@ public void run() * used for check whether such detail exist * @return list of details or null if currently not available */ - private static List getWebPageDetails( + private static List getURLDetails( UIContact uiContact, WebDetailsListener webDetailsListener, boolean returnFirst) @@ -1574,7 +1574,7 @@ private static List getWebPageDetails( .getContactsForOperationSet( OperationSetServerStoredContactInfo.class).iterator(); - List res = new ArrayList(); + List res = new ArrayList(); boolean foundWebLink = false; while (contacts.hasNext()) @@ -1599,9 +1599,9 @@ private static List getWebPageDetails( while(iter.hasNext()) { GenericDetail d = iter.next(); - if(d instanceof WebPageDetail) + if(d instanceof URLDetail) { - final WebPageDetail webd = (WebPageDetail)d; + final URLDetail webd = (URLDetail)d; if(webd.getDetailValue() != null) { res.add(webd); @@ -1644,8 +1644,8 @@ private static void openURL( if (contactDescriptor instanceof MetaUIContact) { - List details = - getWebPageDetails(contactDescriptor, null, false); + List details = + getURLDetails(contactDescriptor, null, false); if(details == null) return; @@ -1670,10 +1670,10 @@ private static void openURL( location.y -= 8; List items = new ArrayList(); - Iterator detailIterator = details.iterator(); + Iterator detailIterator = details.iterator(); while(detailIterator.hasNext()) { - final WebPageDetail wd = detailIterator.next(); + final URLDetail wd = detailIterator.next(); String url = wd.getDetailValue().toString(); String displayStr = url; @@ -1927,13 +1927,13 @@ private class WebButton /** * The links used in this button. */ - private List links; + private List links; /** * Changes the links. * @param links */ - private void setLinks(List links) + private void setLinks(List links) { this.links = links; } @@ -1951,7 +1951,7 @@ public ExtendedTooltip getTooltip() ExtendedTooltip tip = new ExtendedTooltip(true); tip.setTitle(webButton.getToolTipText()); - for(WebPageDetail wd : links) + for(URLDetail wd : links) { String displayStr = wd.getDetailValue().toString(); // do not display too long links