svn commit: r12803 - trunk/src_new/org/argouml/uml/ui/UMLModelElementOrderedListModel2.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-06-09 13:08:48-0700
New Revision: 12803

Modified:
   trunk/src_new/org/argouml/uml/ui/UMLModelElementOrderedListModel2.java

Log:
Update comments to match code

Modified: trunk/src_new/org/argouml/uml/ui/UMLModelElementOrderedListModel2.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/ui/UMLModelElementOrderedListModel2.java?view=diff&rev=12803&p1=trunk/src_new/org/argouml/uml/ui/UMLModelElementOrderedListModel2.java&p2=trunk/src_new/org/argouml/uml/ui/UMLModelElementOrderedListModel2.java&r1=12802&r2=12803
==============================================================================
--- trunk/src_new/org/argouml/uml/ui/UMLModelElementOrderedListModel2.java	(original)
+++ trunk/src_new/org/argouml/uml/ui/UMLModelElementOrderedListModel2.java	2007-06-09 13:08:48-0700
@@ -37,8 +37,8 @@
  * in the metamodel (see UML standard) that have a {ordered} constraint.
  * <p>
  *
- * This adds the functionality of a popup menu with the items "Move Up" and
- * "Move Down".
+ * This adds the functionality of a popup menu with the items "Move Up",
+ * "Move Down", "Move to Top", and "Move to Bottom".
  *
  * @author Michiel
  */
@@ -76,8 +76,18 @@
      */
     protected abstract void moveDown(int index);
 
+    /**
+     * Move element at given index to top of list.
+     * 
+     * @param index starting position of element to be moved
+     */
     protected abstract void moveToTop(int index);
 
+    /**
+     * Move element at given index to bottom of list.
+     * 
+     * @param index starting position of element to be moved
+     */
     protected abstract void moveToBottom(int index);
 
     /*
@@ -176,9 +186,9 @@
 }
 
 /**
- * The action to move an item in the list one place down.
+ * Action to move an item to the top (beginning) of an ordered list model.
  *
- * @author [email protected]
+ * @author Aleksandar Vucetica
  */
 class MoveToTopAction extends UndoableAction {
     private UMLModelElementOrderedListModel2 model;
@@ -186,7 +196,13 @@
     private int index;
 
     /**
-     * The constructor.
+     * Construct an action to move the item at the given index to the top of
+     * the given list.
+     * 
+     * @param theModel
+     *            the list model to operate on
+     * @param theIndex
+     *            starting position of element to move
      */
     public MoveToTopAction(UMLModelElementOrderedListModel2 theModel,
             int theIndex) {
@@ -214,9 +230,9 @@
 }
 
 /**
- * The action to move an item in the list one place down.
+ * Move an item to the bottom of the list.
  *
- * @author [email protected]
+ * @author Aleksandar Vucetica
  */
 class MoveToBottomAction extends UndoableAction {
     private UMLModelElementOrderedListModel2 model;
@@ -224,7 +240,13 @@
     private int index;
 
     /**
-     * The constructor.
+     * Construct an action to move the item at the given index to the bottom of
+     * the given list.
+     * 
+     * @param theModel
+     *            the list model to operate on
+     * @param theIndex
+     *            starting position of element to move
      */
     public MoveToBottomAction(UMLModelElementOrderedListModel2 theModel,
             int theIndex) {
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.