Fixes warnings.

cefexperiments 5311
Lyubomir Marinov 11 years ago
parent 5a03482109
commit bcefab613f

@ -1881,43 +1881,45 @@ private String getElementContent(String elementId, String message)
public static ConfigurationForm getChatConfigForm()
{
// General configuration forms only.
String osgiFilter = "("
+ ConfigurationForm.FORM_TYPE
+ "="+ConfigurationForm.GENERAL_TYPE+")";
Collection<ServiceReference<ConfigurationForm>> cfgFormRefs;
String osgiFilter
= "(" + ConfigurationForm.FORM_TYPE + "="
+ ConfigurationForm.GENERAL_TYPE + ")";
ServiceReference[] confFormsRefs = null;
try
{
confFormsRefs = GuiActivator.bundleContext
.getServiceReferences(
ConfigurationForm.class.getName(),
cfgFormRefs
= GuiActivator.bundleContext.getServiceReferences(
ConfigurationForm.class,
osgiFilter);
}
catch (InvalidSyntaxException ex)
{}
String chatConfigFormClassName =
"net.java.sip.communicator.plugin.chatconfig.ChatConfigPanel";
{
cfgFormRefs = null;
}
if(confFormsRefs != null)
if ((cfgFormRefs != null) && !cfgFormRefs.isEmpty())
{
for (int i = 0; i < confFormsRefs.length; i++)
String chatCfgFormClassName
= "net.java.sip.communicator.plugin.chatconfig.ChatConfigPanel";
for (ServiceReference<ConfigurationForm> cfgFormRef : cfgFormRefs)
{
ConfigurationForm form
= (ConfigurationForm) GuiActivator.bundleContext
.getService(confFormsRefs[i]);
= GuiActivator.bundleContext.getService(cfgFormRef);
if (form instanceof LazyConfigurationForm)
{
LazyConfigurationForm lazyConfigForm
= (LazyConfigurationForm) form;
if (lazyConfigForm.getFormClassName()
.equals(chatConfigFormClassName))
if (chatCfgFormClassName.equals(
lazyConfigForm.getFormClassName()))
{
return form;
}
else if (form.getClass().getName()
.equals(chatConfigFormClassName))
}
else if (form.getClass().getName().equals(chatCfgFormClassName))
{
return form;
}

@ -811,48 +811,51 @@ private void initPluginComponents()
// Search for plugin components registered through the OSGI bundle
// context.
ServiceReference[] serRefs = null;
String osgiFilter = "(|("
+ Container.CONTAINER_ID
+ "="+Container.CONTAINER_CHAT_WINDOW.getID()+")"
+ "(" + Container.CONTAINER_ID
+ "="+Container.CONTAINER_CHAT_STATUS_BAR.getID()+"))";
Collection<ServiceReference<PluginComponentFactory>> serRefs;
String osgiFilter
= "(|(" + Container.CONTAINER_ID + "="
+ Container.CONTAINER_CHAT_WINDOW.getID() + ")("
+ Container.CONTAINER_ID + "="
+ Container.CONTAINER_CHAT_STATUS_BAR.getID() + "))";
try
{
serRefs = GuiActivator.bundleContext.getServiceReferences(
PluginComponentFactory.class.getName(),
serRefs
= GuiActivator.bundleContext.getServiceReferences(
PluginComponentFactory.class,
osgiFilter);
}
catch (InvalidSyntaxException exc)
catch (InvalidSyntaxException ex)
{
logger.error("Could not obtain plugin component reference.", exc);
serRefs = null;
logger.error("Could not obtain plugin component reference.", ex);
}
if (serRefs != null)
if ((serRefs != null) && !serRefs.isEmpty())
{
for (ServiceReference serRef : serRefs)
for (ServiceReference<PluginComponentFactory> serRef : serRefs)
{
PluginComponentFactory factory
= (PluginComponentFactory)
GuiActivator .bundleContext.getService(serRef);
Component comp = (Component)factory.getPluginComponentInstance(
ChatWindow.this).getComponent();
= GuiActivator.bundleContext.getService(serRef);
Component comp
= (Component)
factory
.getPluginComponentInstance(ChatWindow.this)
.getComponent();
// If this component has been already added, we have nothing
// more to do here.
if (comp.getParent() != null)
return;
Object borderLayoutConstraint = UIServiceImpl
.getBorderLayoutConstraintsFromContainer(
Object borderLayoutConstraints
= UIServiceImpl.getBorderLayoutConstraintsFromContainer(
factory.getConstraints());
this.addPluginComponent(comp,
addPluginComponent(
comp,
factory.getContainer(),
borderLayoutConstraint);
borderLayoutConstraints);
}
}
}

@ -1593,49 +1593,56 @@ void initPluginComponents()
{
// Search for plugin components registered through the OSGI bundle
// context.
ServiceReference[] serRefs = null;
String osgiFilter = "("
+ net.java.sip.communicator.service.gui.Container.CONTAINER_ID
+ "="+net.java.sip.communicator.service.gui.Container.
CONTAINER_CHAT_WRITE_PANEL.getID()+")";
Collection<ServiceReference<PluginComponentFactory>> serRefs;
String osgiFilter
= "(" + net.java.sip.communicator.service.gui.Container.CONTAINER_ID
+ "="
+ net.java.sip.communicator.service.gui.Container
.CONTAINER_CHAT_WRITE_PANEL.getID()
+ ")";
try
{
serRefs = GuiActivator.bundleContext.getServiceReferences(
PluginComponentFactory.class.getName(),
serRefs
= GuiActivator.bundleContext.getServiceReferences(
PluginComponentFactory.class,
osgiFilter);
}
catch (InvalidSyntaxException exc)
catch (InvalidSyntaxException ex)
{
logger.error("Could not obtain plugin reference.", exc);
serRefs = null;
logger.error("Could not obtain plugin reference.", ex);
}
if (serRefs != null)
if ((serRefs != null) && !serRefs.isEmpty())
{
for (int i = 0; i < serRefs.length; i ++)
for (ServiceReference<PluginComponentFactory> serRef : serRefs)
{
PluginComponentFactory factory =
(PluginComponentFactory) GuiActivator
.bundleContext.getService(serRefs[i]);
PluginComponent component =
factory.getPluginComponentInstance(this);
PluginComponentFactory factory
= GuiActivator.bundleContext.getService(serRef);
PluginComponent component
= factory.getPluginComponentInstance(this);
ChatSession chatSession = chatPanel.getChatSession();
if (chatSession != null)
{
ChatTransport currentTransport =
chatSession.getCurrentChatTransport();
ChatTransport currentTransport
= chatSession.getCurrentChatTransport();
Object currentDescriptor = currentTransport.getDescriptor();
if (currentDescriptor instanceof Contact)
{
Contact contact = (Contact) currentDescriptor;
component.setCurrentContact(
contact, currentTransport.getResourceName());
contact,
currentTransport.getResourceName());
}
}
if (component.getComponent() == null)
Object c = component.getComponent();
if (c == null)
continue;
GridBagConstraints constraints = new GridBagConstraints();
@ -1648,8 +1655,7 @@ void initPluginComponents()
constraints.weighty = 0f;
constraints.insets = new Insets(0, 3, 0, 0);
centerPanel.add(
(Component)component.getComponent(), constraints);
centerPanel.add((Component) c, constraints);
}
}
GuiActivator.getUIService().addPluginComponentListener(this);

@ -9,6 +9,7 @@
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import net.java.sip.communicator.impl.gui.*;
import net.java.sip.communicator.impl.gui.event.*;
@ -69,34 +70,34 @@ private void initPluginComponents()
{
// Search for plugin components registered through the OSGI bundle
// context.
ServiceReference[] serRefs = null;
String osgiFilter = "("
+ Container.CONTAINER_ID
+ "="+Container.CONTAINER_CHAT_HELP_MENU.getID()+")";
Collection<ServiceReference<PluginComponentFactory>> serRefs;
String osgiFilter
= "(" + Container.CONTAINER_ID + "="
+ Container.CONTAINER_CHAT_HELP_MENU.getID() + ")";
try
{
serRefs = GuiActivator.bundleContext.getServiceReferences(
PluginComponentFactory.class.getName(),
serRefs
= GuiActivator.bundleContext.getServiceReferences(
PluginComponentFactory.class,
osgiFilter);
}
catch (InvalidSyntaxException exc)
catch (InvalidSyntaxException ex)
{
logger.error("Could not obtain plugin reference.", exc);
serRefs = null;
logger.error("Could not obtain plugin reference.", ex);
}
if (serRefs != null)
if ((serRefs != null) && !serRefs.isEmpty())
{
for (int i = 0; i < serRefs.length; i ++)
for (ServiceReference<PluginComponentFactory> serRef : serRefs)
{
PluginComponentFactory factory =
(PluginComponentFactory) GuiActivator
.bundleContext.getService(serRefs[i]);
PluginComponent component =
factory.getPluginComponentInstance(HelpMenu.this);
PluginComponentFactory factory
= GuiActivator.bundleContext.getService(serRef);
PluginComponent component
= factory.getPluginComponentInstance(HelpMenu.this);
this.add((Component)component.getComponent());
add((Component) component.getComponent());
}
}

@ -23,9 +23,6 @@
*/
public class AdHocChatRoomList
{
private static final Logger logger
= Logger.getLogger(AdHocChatRoomList.class);
/**
* The list containing all chat servers and ad-hoc rooms.
*/
@ -37,37 +34,25 @@ public class AdHocChatRoomList
*/
public void loadList()
{
try
{
ServiceReference[] serRefs
= GuiActivator.bundleContext.getServiceReferences(
ProtocolProviderService.class.getName(),
null);
Collection<ServiceReference<ProtocolProviderService>> serRefs
= ServiceUtils.getServiceReferences(
GuiActivator.bundleContext,
ProtocolProviderService.class);
// If we don't have providers at this stage we just return.
if (serRefs == null)
return;
for (ServiceReference serRef : serRefs)
if ((serRefs != null) && !serRefs.isEmpty())
{
for (ServiceReference<ProtocolProviderService> serRef : serRefs)
{
ProtocolProviderService protocolProvider
= (ProtocolProviderService)
GuiActivator.bundleContext.getService(serRef);
= GuiActivator.bundleContext.getService(serRef);
Object adHocMultiUserChatOpSet
= protocolProvider
.getOperationSet(OperationSetAdHocMultiUserChat.class);
= protocolProvider.getOperationSet(
OperationSetAdHocMultiUserChat.class);
if (adHocMultiUserChatOpSet != null)
{
this.addChatProvider(protocolProvider);
}
addChatProvider(protocolProvider);
}
}
catch (InvalidSyntaxException e)
{
logger.error("Failed to obtain service references.", e);
}
}
/**

@ -6,6 +6,7 @@
package net.java.sip.communicator.impl.gui.main.configforms;
import java.awt.*;
import java.util.*;
import javax.swing.*;
import javax.swing.border.*;
@ -119,30 +120,31 @@ public ConfigurationFrame(MainFrame mainFrame)
GuiActivator.bundleContext.addServiceListener(this);
// General configuration forms only.
String osgiFilter = "("
+ ConfigurationForm.FORM_TYPE
+ "="+ConfigurationForm.GENERAL_TYPE+")";
Collection<ServiceReference<ConfigurationForm>> cfgFormRefs;
String osgiFilter
= "(" + ConfigurationForm.FORM_TYPE + "="
+ ConfigurationForm.GENERAL_TYPE + ")";
ServiceReference[] confFormsRefs = null;
try
{
confFormsRefs = GuiActivator.bundleContext
.getServiceReferences(
ConfigurationForm.class.getName(),
cfgFormRefs
= GuiActivator.bundleContext.getServiceReferences(
ConfigurationForm.class,
osgiFilter);
}
catch (InvalidSyntaxException ex)
{}
{
cfgFormRefs = null;
}
if(confFormsRefs != null)
if ((cfgFormRefs != null) && !cfgFormRefs.isEmpty())
{
for (int i = 0; i < confFormsRefs.length; i++)
for (ServiceReference<ConfigurationForm> cfgFormRef : cfgFormRefs)
{
ConfigurationForm form
= (ConfigurationForm) GuiActivator.bundleContext
.getService(confFormsRefs[i]);
= GuiActivator.bundleContext.getService(cfgFormRef);
this.addConfigurationForm(form);
addConfigurationForm(form);
}
}
}
@ -273,41 +275,43 @@ protected void close(boolean isEscaped)
* Handles registration of a new configuration form.
* @param event the <tt>ServiceEvent</tt> that notified us
*/
@Override
public void serviceChanged(ServiceEvent event)
{
if(!GuiActivator.isStarted)
return;
ServiceReference serRef = event.getServiceReference();
ServiceReference<?> serRef = event.getServiceReference();
Object property = serRef.getProperty(ConfigurationForm.FORM_TYPE);
if (property != ConfigurationForm.GENERAL_TYPE)
return;
Object sService
= GuiActivator.bundleContext.getService(
event.getServiceReference());
Object service = GuiActivator.bundleContext.getService(serRef);
// we don't care if the source service is not a configuration form
if (!(sService instanceof ConfigurationForm))
if (!(service instanceof ConfigurationForm))
return;
ConfigurationForm configForm = (ConfigurationForm) sService;
ConfigurationForm cfgForm = (ConfigurationForm) service;
if (configForm.isAdvanced())
if (cfgForm.isAdvanced())
return;
switch (event.getType())
{
case ServiceEvent.REGISTERED:
if (logger.isInfoEnabled())
logger.info("Handling registration of a new Configuration Form.");
this.addConfigurationForm(configForm);
{
logger.info(
"Handling registration of a new Configuration Form.");
}
addConfigurationForm(cfgForm);
break;
case ServiceEvent.UNREGISTERING:
this.removeConfigurationForm(configForm);
removeConfigurationForm(cfgForm);
break;
}
}

@ -812,32 +812,32 @@ private void initPluginComponents()
{
// Search for plugin components registered through the OSGI bundle
// context.
ServiceReference[] serRefs = null;
String osgiFilter = "("
+ Container.CONTAINER_ID
+ "="+Container.CONTAINER_CONTACT_LIST.getID()+")";
Collection<ServiceReference<PluginComponentFactory>> serRefs;
String osgiFilter
= "(" + Container.CONTAINER_ID + "="
+ Container.CONTAINER_CONTACT_LIST.getID() + ")";
try
{
serRefs = GuiActivator.bundleContext.getServiceReferences(
PluginComponentFactory.class.getName(),
serRefs
= GuiActivator.bundleContext.getServiceReferences(
PluginComponentFactory.class,
osgiFilter);
}
catch (InvalidSyntaxException exc)
catch (InvalidSyntaxException ex)
{
logger.error("Could not obtain plugin reference.", exc);
serRefs = null;
logger.error("Could not obtain plugin reference.", ex);
}
if (serRefs != null)
if ((serRefs != null) && !serRefs.isEmpty())
{
for (ServiceReference serRef : serRefs)
for (ServiceReference<PluginComponentFactory> serRef : serRefs)
{
PluginComponentFactory factory =
(PluginComponentFactory)
GuiActivator.bundleContext.getService(serRef);
PluginComponent component =
factory.getPluginComponentInstance(this);
PluginComponentFactory factory
= GuiActivator.bundleContext.getService(serRef);
PluginComponent component
= factory.getPluginComponentInstance(this);
Object selectedValue = getContactList().getSelectedValue();
@ -847,23 +847,25 @@ private void initPluginComponents()
}
else if(selectedValue instanceof MetaContactGroup)
{
component
.setCurrentContactGroup((MetaContactGroup)selectedValue);
component.setCurrentContactGroup(
(MetaContactGroup) selectedValue);
}
String pluginConstraints = factory.getConstraints();
Object constraints;
if (pluginConstraints != null)
constraints = UIServiceImpl
.getBorderLayoutConstraintsFromContainer(
{
constraints
= UIServiceImpl.getBorderLayoutConstraintsFromContainer(
pluginConstraints);
}
else
constraints = BorderLayout.SOUTH;
this.add((Component)component.getComponent(), constraints);
add((Component) component.getComponent(), constraints);
this.repaint();
repaint();
}
}

@ -8,7 +8,6 @@
import java.util.*;
import net.java.sip.communicator.impl.protocol.irc.*;
import net.java.sip.communicator.service.protocol.*;
/**

@ -6,17 +6,19 @@
*/
package net.java.sip.communicator.service.resources;
import net.java.sip.communicator.util.*;
import org.jitsi.service.configuration.*;
import org.jitsi.service.resources.*;
import org.osgi.framework.*;
import javax.swing.*;
import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
import net.java.sip.communicator.util.*;
import org.jitsi.service.configuration.*;
import org.jitsi.service.resources.*;
import org.osgi.framework.*;
/**
* The abstract class for ResourceManagementService. It listens for
* {@link ResourcePack} that are registered and exposes them later for use by
@ -109,15 +111,17 @@ public AbstractResourcesService(BundleContext bundleContext)
this.bundleContext = bundleContext;
bundleContext.addServiceListener(this);
colorPack =
getDefaultResourcePack(ColorPack.class.getName(),
colorPack
= getDefaultResourcePack(
ColorPack.class,
ColorPack.RESOURCE_NAME_DEFAULT_VALUE);
if (colorPack != null)
colorResources = getResources(colorPack);
imagePack = (ImagePack) getDefaultResourcePack(
ImagePack.class.getName(),
imagePack
= getDefaultResourcePack(
ImagePack.class,
ImagePack.RESOURCE_NAME_DEFAULT_VALUE);
if (imagePack != null)
@ -132,8 +136,9 @@ public AbstractResourcesService(BundleContext bundleContext)
Locale.setDefault(
ResourceManagementServiceUtils.getLocale(defaultLocale));
languagePack = (LanguagePack) getDefaultResourcePack(
LanguagePack.class.getName(),
languagePack
= getDefaultResourcePack(
LanguagePack.class,
LanguagePack.RESOURCE_NAME_DEFAULT_VALUE);
if (languagePack != null)
@ -142,22 +147,26 @@ public AbstractResourcesService(BundleContext bundleContext)
languageResources = languagePack.getResources(languageLocale);
}
settingsPack =
getDefaultResourcePack(SettingsPack.class.getName(),
settingsPack
= getDefaultResourcePack(
SettingsPack.class,
SettingsPack.RESOURCE_NAME_DEFAULT_VALUE);
if (settingsPack != null)
settingsResources = getResources(settingsPack);
soundPack =
getDefaultResourcePack(SoundPack.class.getName(),
soundPack
= getDefaultResourcePack(
SoundPack.class,
SoundPack.RESOURCE_NAME_DEFAULT_VALUE);
if (soundPack != null)
soundResources = getResources(soundPack);
skinPack = (SkinPack) getDefaultResourcePack(
SkinPack.class.getName(), SkinPack.RESOURCE_NAME_DEFAULT_VALUE);
skinPack
= getDefaultResourcePack(
SkinPack.class,
SkinPack.RESOURCE_NAME_DEFAULT_VALUE);
if (skinPack != null)
{
@ -247,48 +256,48 @@ else if (event.getType() == ServiceEvent.UNREGISTERING)
if(resourcePack instanceof ColorPack
&& colorPack.equals(resourcePack))
{
colorPack =
getDefaultResourcePack(ColorPack.class.getName(),
colorPack
= getDefaultResourcePack(
ColorPack.class,
ColorPack.RESOURCE_NAME_DEFAULT_VALUE);
if (colorPack != null)
colorResources = getResources(colorPack);
}
else if(resourcePack instanceof ImagePack
&& imagePack.equals(resourcePack))
{
imagePack = (ImagePack) getDefaultResourcePack(
ImagePack.class.getName(),
imagePack
= getDefaultResourcePack(
ImagePack.class,
ImagePack.RESOURCE_NAME_DEFAULT_VALUE);
if (imagePack != null)
imageResources = getResources(imagePack);
}
else if(resourcePack instanceof LanguagePack
&& languagePack.equals(resourcePack))
{
languagePack =
(LanguagePack) getDefaultResourcePack(
LanguagePack.class.getName(),
languagePack
= getDefaultResourcePack(
LanguagePack.class,
LanguagePack.RESOURCE_NAME_DEFAULT_VALUE);
}
else if(resourcePack instanceof SettingsPack
&& settingsPack.equals(resourcePack))
{
settingsPack =
getDefaultResourcePack(SettingsPack.class.getName(),
settingsPack
= getDefaultResourcePack(
SettingsPack.class,
SettingsPack.RESOURCE_NAME_DEFAULT_VALUE);
if (settingsPack != null)
settingsResources = getResources(settingsPack);
}
else if(resourcePack instanceof SoundPack
&& soundPack.equals(resourcePack))
{
soundPack =
getDefaultResourcePack(SoundPack.class.getName(),
soundPack
= getDefaultResourcePack(
SoundPack.class,
SoundPack.RESOURCE_NAME_DEFAULT_VALUE);
if (soundPack != null)
soundResources = getResources(soundPack);
}
@ -310,10 +319,10 @@ else if(resourcePack instanceof SkinPack
settingsResources = getResources(settingsPack);
}
skinPack = (SkinPack) getDefaultResourcePack(
SkinPack.class.getName(),
skinPack
= getDefaultResourcePack(
SkinPack.class,
SkinPack.RESOURCE_NAME_DEFAULT_VALUE);
if (skinPack != null)
{
imageResources.putAll(skinPack.getImageResources());
@ -341,28 +350,27 @@ else if(resourcePack instanceof SkinPack
* @return the <tt>ResourcePack</tt> corresponding to the given
* <tt>className</tt> and <tt></tt>.
*/
protected ResourcePack getDefaultResourcePack(String className,
protected <T extends ResourcePack> T getDefaultResourcePack(
Class<T> clazz,
String typeName)
{
ServiceReference[] serRefs = null;
String osgiFilter =
"(" + ResourcePack.RESOURCE_NAME + "=" + typeName + ")";
Collection<ServiceReference<T>> serRefs;
String osgiFilter
= "(" + ResourcePack.RESOURCE_NAME + "=" + typeName + ")";
try
{
serRefs = bundleContext.getServiceReferences(
className,
osgiFilter);
serRefs = bundleContext.getServiceReferences(clazz, osgiFilter);
}
catch (InvalidSyntaxException exc)
catch (InvalidSyntaxException ex)
{
logger.error("Could not obtain resource packs reference.", exc);
serRefs = null;
logger.error("Could not obtain resource packs reference.", ex);
}
if ((serRefs != null) && (serRefs.length > 0))
if ((serRefs != null) && !serRefs.isEmpty())
{
return (ResourcePack) bundleContext.getService(serRefs[0]);
return bundleContext.getService(serRefs.iterator().next());
}
return null;
}

@ -1028,7 +1028,7 @@ static class IntHashMap {
*/
private static class Entry {
final int hash;
final int key;
// final int key;
Object value;
Entry next;
@ -1042,7 +1042,7 @@ private static class Entry {
*/
protected Entry(int hash, int key, Object value, Entry next) {
this.hash = hash;
this.key = key;
// this.key = key;
this.value = value;
this.next = next;
}

@ -228,30 +228,30 @@ public static MediaConfigurationService getMediaConfiguration()
public static Map<Object, ProtocolProviderFactory>
getProtocolProviderFactories()
{
Collection<ServiceReference<ProtocolProviderFactory>> serRefs;
Map<Object, ProtocolProviderFactory> providerFactoriesMap
= new Hashtable<Object, ProtocolProviderFactory>();
ServiceReference[] serRefs = null;
try
{
// get all registered provider factories
serRefs
= bundleContext.getServiceReferences(
ProtocolProviderFactory.class.getName(),
ProtocolProviderFactory.class,
null);
}
catch (InvalidSyntaxException e)
catch (InvalidSyntaxException ex)
{
logger.error("LoginManager : " + e);
serRefs = null;
logger.error("LoginManager : " + ex);
}
if (serRefs != null)
if ((serRefs != null) && !serRefs.isEmpty())
{
for (ServiceReference serRef : serRefs)
for (ServiceReference<ProtocolProviderFactory> serRef : serRefs)
{
ProtocolProviderFactory providerFactory
= (ProtocolProviderFactory)
bundleContext.getService(serRef);
= bundleContext.getService(serRef);
providerFactoriesMap.put(
serRef.getProperty(ProtocolProviderFactory.PROTOCOL),

@ -6,15 +6,18 @@
*/
package net.java.sip.communicator.util.call;
import java.util.*;
import net.java.sip.communicator.service.contactlist.*;
import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.service.protocol.OperationSetServerStoredContactInfo.*;
import net.java.sip.communicator.service.protocol.ServerStoredDetails.*;
import net.java.sip.communicator.service.protocol.OperationSetServerStoredContactInfo.DetailsResponseListener;
import net.java.sip.communicator.service.protocol.ServerStoredDetails.GenericDetail;
import net.java.sip.communicator.service.protocol.ServerStoredDetails.MobilePhoneDetail;
import net.java.sip.communicator.service.protocol.ServerStoredDetails.VideoDetail;
import net.java.sip.communicator.service.protocol.ServerStoredDetails.WorkPhoneDetail;
import net.java.sip.communicator.util.*;
import net.java.sip.communicator.util.account.*;
import java.util.*;
/**
* Utility class used to check if there is a telephony service, video calls and
* desktop sharing enabled for a protocol specific <tt>MetaContact</tt>.
@ -24,13 +27,6 @@
*/
public class MetaContactPhoneUtil
{
/**
* The <tt>Logger</tt> used by the <tt>CallManager</tt> class and its
* instances for logging output.
*/
private static final Logger logger
= Logger.getLogger(MetaContactPhoneUtil.class);
/**
* The metacontcat we are working on.
*/

Loading…
Cancel
Save