[Mc4j-cvs] mc4j/src/org/mc4j/console/domain DomainChildren.java,1.4,1.5 DomainNode.java,1.7,1.8
Brought to you by:
ghinkl
From: Greg H. <gh...@us...> - 2004-04-07 15:40:39
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/domain In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22877/src/org/mc4j/console/domain Modified Files: DomainChildren.java DomainNode.java Log Message: Made all nodes comparable and started using Children.SortedArray so that all nodes in the explorer are always sorted by their display names. Index: DomainNode.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/domain/DomainNode.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** DomainNode.java 7 Feb 2004 16:10:41 -0000 1.7 --- DomainNode.java 7 Apr 2004 15:27:37 -0000 1.8 *************** *** 48,52 **** * @version $Revision$($Author$ / $Date$) */ ! public class DomainNode extends AbstractNode { String domainName; --- 48,52 ---- * @version $Revision$($Author$ / $Date$) */ ! public class DomainNode extends AbstractNode implements Comparable { String domainName; *************** *** 73,77 **** } ! /** --- 73,80 ---- } ! public int compareTo(Object o) { ! Node otherNode = (Node) o; ! return this.getDisplayName().compareTo(otherNode.getDisplayName()); ! } /** Index: DomainChildren.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/domain/DomainChildren.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** DomainChildren.java 7 Feb 2004 16:10:41 -0000 1.4 --- DomainChildren.java 7 Apr 2004 15:27:36 -0000 1.5 *************** *** 29,33 **** * @version $Revision$($Author$ / $Date$) */ ! public class DomainChildren extends Children.Array { protected DomainNode domainNode; --- 29,33 ---- * @version $Revision$($Author$ / $Date$) */ ! public class DomainChildren extends Children.SortedArray { protected DomainNode domainNode; |