mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22:05 +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:
parent
d58b5a221f
commit
9d3f3395ea
1 changed files with 16 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue