svn commit: r14225 - trunk/src/app/src/org/argouml: cognitive ui

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-03-24 09:21:20-0700
New Revision: 14225

Modified:
   trunk/src/app/src/org/argouml/cognitive/Designer.java
   trunk/src/app/src/org/argouml/cognitive/ToDoList.java
   trunk/src/app/src/org/argouml/ui/ProgressMonitorWindow.java
   trunk/src/app/src/org/argouml/ui/StatusBar.java

Log:
Style and comments cleanup

Modified: trunk/src/app/src/org/argouml/cognitive/Designer.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/app/src/org/argouml/cognitive/Designer.java?view=diff&rev=14225&p1=trunk/src/app/src/org/argouml/cognitive/Designer.java&p2=trunk/src/app/src/org/argouml/cognitive/Designer.java&r1=14224&r2=14225
==============================================================================
--- trunk/src/app/src/org/argouml/cognitive/Designer.java	(original)
+++ trunk/src/app/src/org/argouml/cognitive/Designer.java	2008-03-24 09:21:20-0700
@@ -247,7 +247,9 @@
     /**
      * @return the designer singleton
      */
-    public static Designer theDesigner() { return theDesignerSingleton; }
+    public static Designer theDesigner() {
+        return theDesignerSingleton;
+    }
 
 
     ////////////////////////////////////////////////////////////////
@@ -767,7 +769,7 @@
     }
 
     /**
-     * Reply the designers personal preferneces.
+     * Reply the designers personal preferences.
      * Currently not used (?).
      *
      * @return the preferences
@@ -802,7 +804,9 @@
      * @param goal the given goal
      * @return true if this goal is desired
      */
-    public boolean hasGoal(String goal) { return goals.hasGoal(goal); }
+    public boolean hasGoal(String goal) {
+        return goals.hasGoal(goal);
+    }
 
     /**
      * @param goal the given goal
@@ -815,29 +819,39 @@
     /**
      * @param goal the goal I (me, the designer) desire
      */
-    public void startDesiring(String goal) { goals.startDesiring(goal); }
+    public void startDesiring(String goal) {
+        goals.startDesiring(goal);
+    }
 
     /**
      * @param goal the goal that is not desired any more
      */
-    public void stopDesiring(String goal) { goals.stopDesiring(goal); }
+    public void stopDesiring(String goal) {
+        goals.stopDesiring(goal);
+    }
 
     /*
      * @see org.argouml.cognitive.Poster#snooze()
      */
-    public void snooze() { /* do nothing */ }
+    public void snooze() { 
+        /* do nothing */
+    }
 
     /*
      * @see org.argouml.cognitive.Poster#unsnooze()
      */
-    public void unsnooze() { /* do nothing */ }
+    public void unsnooze() { 
+        /* do nothing */
+    }
 
     /**
      * Reply the Agency object that is helping this Designer.
      * 
      * @return my agency
      */
-    public Agency getAgency() { return agency; }
+    public Agency getAgency() {
+        return agency;
+    }
 
     ////////////////////////////////////////////////////////////////
     // user interface
@@ -876,6 +890,7 @@
      *
      * @see java.lang.Object#toString()
      */
+    @Override
     public String toString() {
         //TODO: This should be the name of the designer that created
         //      the todoitem, not the current username!

Modified: trunk/src/app/src/org/argouml/cognitive/ToDoList.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/app/src/org/argouml/cognitive/ToDoList.java?view=diff&rev=14225&p1=trunk/src/app/src/org/argouml/cognitive/ToDoList.java&p2=trunk/src/app/src/org/argouml/cognitive/ToDoList.java&r1=14224&r2=14225
==============================================================================
--- trunk/src/app/src/org/argouml/cognitive/ToDoList.java	(original)
+++ trunk/src/app/src/org/argouml/cognitive/ToDoList.java	2008-03-24 09:21:20-0700
@@ -567,7 +567,7 @@
 
     /**
      * @param off the offender
-     * @return the todo tems for this offender
+     * @return the todo items for this offender
      * @deprecated for 0.25.4 by tfmorris. Use
      *             {@link #elementListForOffender(Object)}.
      */
@@ -578,7 +578,7 @@
 
     /**
      * @param off the offender
-     * @return the todo tems for this offender
+     * @return the todo items for this offender
      */
     public List<ToDoItem> elementListForOffender(Object off) {
         if (off == recentOffender) {

Modified: trunk/src/app/src/org/argouml/ui/ProgressMonitorWindow.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/app/src/org/argouml/ui/ProgressMonitorWindow.java?view=diff&rev=14225&p1=trunk/src/app/src/org/argouml/ui/ProgressMonitorWindow.java&p2=trunk/src/app/src/org/argouml/ui/ProgressMonitorWindow.java&r1=14224&r2=14225
==============================================================================
--- trunk/src/app/src/org/argouml/ui/ProgressMonitorWindow.java	(original)
+++ trunk/src/app/src/org/argouml/ui/ProgressMonitorWindow.java	2008-03-24 09:21:20-0700
@@ -38,8 +38,8 @@
  * Manages a ProgressMonitor dialog.
  * 
  * NOTE: Users of this class should use the type of the interface
- * org.argouml.swingext.ProgressMonitor wherever possible to
- * maintain GUI independance.
+ * {@link org.argouml.taskmgmt.ProgressMonitor} wherever possible to
+ * maintain GUI independence.
  * 
  * @author [email protected]
  */

Modified: trunk/src/app/src/org/argouml/ui/StatusBar.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/app/src/org/argouml/ui/StatusBar.java?view=diff&rev=14225&p1=trunk/src/app/src/org/argouml/ui/StatusBar.java&p2=trunk/src/app/src/org/argouml/ui/StatusBar.java&r1=14224&r2=14225
==============================================================================
--- trunk/src/app/src/org/argouml/ui/StatusBar.java	(original)
+++ trunk/src/app/src/org/argouml/ui/StatusBar.java	2008-03-24 09:21:20-0700
@@ -122,9 +122,4 @@
 	repaint();
     }
 
-
-    //   public boolean isOptimizedDrawingEnabled() {
-    //     return false;
-    //   }
-
 }
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.