svn commit: r13764 - trunk/src_new/org/argouml/ui/explorer/TypeThenNameOrder.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-11-12 15:04:48-0800
New Revision: 13764

Modified:
   trunk/src_new/org/argouml/ui/explorer/TypeThenNameOrder.java

Log:
Update Javadoc.  No functional changes.

Modified: trunk/src_new/org/argouml/ui/explorer/TypeThenNameOrder.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/ui/explorer/TypeThenNameOrder.java?view=diff&rev=13764&p1=trunk/src_new/org/argouml/ui/explorer/TypeThenNameOrder.java&p2=trunk/src_new/org/argouml/ui/explorer/TypeThenNameOrder.java&r1=13763&r2=13764
==============================================================================
--- trunk/src_new/org/argouml/ui/explorer/TypeThenNameOrder.java	(original)
+++ trunk/src_new/org/argouml/ui/explorer/TypeThenNameOrder.java	2007-11-12 15:04:48-0800
@@ -46,11 +46,13 @@
     }
 
     /*
-     * Compares obj1 and obj2 as per the class description.
-     * Nulls are sorted first.
-     *
+     * Compares obj1 and obj2 sorting by user object type, then name. Diagrams
+     * are sorted first, then packages, then other types. sorts by name within
+     * type groups. Nulls are sorted first for names.
+     * 
      * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
      */
+    @Override
     public int compare(Object obj1, Object obj2) {
 	if (obj1 instanceof DefaultMutableTreeNode) {
 	    DefaultMutableTreeNode node = (DefaultMutableTreeNode) obj1;
@@ -104,6 +106,7 @@
     /*
      * @see java.lang.Object#toString()
      */
+    @Override
     public String toString() {
         return Translator.localize("combobox.order-by-type-name");
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.