Author: dgeraskov
Date: 2009-11-24 10:54:51 -0500 (Tue, 24 Nov 2009)
New Revision: 18804
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/ConfigurationListNode.java
Log:
removed unnecessary code
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/ConfigurationListNode.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/ConfigurationListNode.java 2009-11-24
15:54:45 UTC (rev 18803)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/ConfigurationListNode.java 2009-11-24
15:54:51 UTC (rev 18804)
@@ -59,12 +59,7 @@
protected void checkChildren() {
if(!childrenCreated) {
- ConsoleConfiguration[] configurations = kc.getConfigurations();
- Arrays.sort(configurations, new Comparator<ConsoleConfiguration>() {
- public int compare(ConsoleConfiguration o1, ConsoleConfiguration o2) {
- return o1.getName().compareTo(o2.getName());
- }
- });
+ ConsoleConfiguration[] configurations = kc.getConfigurationsSortedByName();
for (int i = 0; i < configurations.length; i++) {
children.add(new ConfigurationNode(this, configurations[i]) );
}
Show replies by date