1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +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(); Vector providers = new Vector();
for (Iterator it = ProviderManager.getIQProviders(); it.hasNext();) { for (Iterator it = ProviderManager.getIQProviders(); it.hasNext();) {
Object provider = it.next(); Object provider = it.next();
providers.add( if (provider.getClass() == Class.class) {
(provider.getClass() == Class.class ? provider : provider.getClass().getName())); providers.add(((Class) provider).getName());
}
else {
providers.add(provider.getClass().getName());
}
} }
// Sort the collection of providers
Collections.sort(providers);
JList list = new JList(providers); JList list = new JList(providers);
iqProvidersPanel.add(new JScrollPane(list)); iqProvidersPanel.add(new JScrollPane(list));
informationPanel.add(iqProvidersPanel); informationPanel.add(iqProvidersPanel);
@ -222,9 +228,15 @@ class EnhancedDebuggerWindow {
providers = new Vector(); providers = new Vector();
for (Iterator it = ProviderManager.getExtensionProviders(); it.hasNext();) { for (Iterator it = ProviderManager.getExtensionProviders(); it.hasNext();) {
Object provider = it.next(); Object provider = it.next();
providers.add( if (provider.getClass() == Class.class) {
(provider.getClass() == Class.class ? provider : provider.getClass().getName())); providers.add(((Class) provider).getName());
}
else {
providers.add(provider.getClass().getName());
}
} }
// Sort the collection of providers
Collections.sort(providers);
list = new JList(providers); list = new JList(providers);
extensionProvidersPanel.add(new JScrollPane(list)); extensionProvidersPanel.add(new JScrollPane(list));
informationPanel.add(extensionProvidersPanel); informationPanel.add(extensionProvidersPanel);