1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-30 02:02:06 +01:00

Sorted the list of providers. SMACK-45

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2457 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-02-07 21:37:23 +00:00 committed by gaston
parent d58b5a221f
commit 9d3f3395ea

View file

@ -208,9 +208,15 @@ class EnhancedDebuggerWindow {
Vector providers = new Vector();
for (Iterator it = ProviderManager.getIQProviders(); it.hasNext();) {
Object provider = it.next();
providers.add(
(provider.getClass() == Class.class ? provider : provider.getClass().getName()));
if (provider.getClass() == Class.class) {
providers.add(((Class) provider).getName());
}
else {
providers.add(provider.getClass().getName());
}
}
// Sort the collection of providers
Collections.sort(providers);
JList list = new JList(providers);
iqProvidersPanel.add(new JScrollPane(list));
informationPanel.add(iqProvidersPanel);
@ -222,9 +228,15 @@ class EnhancedDebuggerWindow {
providers = new Vector();
for (Iterator it = ProviderManager.getExtensionProviders(); it.hasNext();) {
Object provider = it.next();
providers.add(
(provider.getClass() == Class.class ? provider : provider.getClass().getName()));
if (provider.getClass() == Class.class) {
providers.add(((Class) provider).getName());
}
else {
providers.add(provider.getClass().getName());
}
}
// Sort the collection of providers
Collections.sort(providers);
list = new JList(providers);
extensionProvidersPanel.add(new JScrollPane(list));
informationPanel.add(extensionProvidersPanel);