svn commit: r16978 - trunk/src/argouml-app/src/org/argouml/uml/generator/ui/ClassGenerationDialog.java

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2009-03-27 05:21:50-0700
New Revision: 16978

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/generator/ui/ClassGenerationDialog.java

Log:
Clean up some checkstyle warnings.  Fix copyright.

Modified: trunk/src/argouml-app/src/org/argouml/uml/generator/ui/ClassGenerationDialog.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/generator/ui/ClassGenerationDialog.java?view=diff&pathrev=16978&r1=16977&r2=16978
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/generator/ui/ClassGenerationDialog.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/generator/ui/ClassGenerationDialog.java	2009-03-27 05:21:50-0700
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 1996-2008 The Regents of the University of California. All
+// Copyright (c) 1996-2009 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -55,7 +55,6 @@
 
 import org.apache.log4j.Logger;
 import org.argouml.i18n.Translator;
-import org.argouml.model.Facade;
 import org.argouml.model.Model;
 import org.argouml.notation.Notation;
 import org.argouml.uml.generator.CodeGenerator;
@@ -67,7 +66,8 @@
 /**
  * The dialog that starts the generation of classes.
  */
-public class ClassGenerationDialog extends ArgoDialog implements ActionListener {
+public class ClassGenerationDialog extends ArgoDialog 
+        implements ActionListener {
 
     private static final String SOURCE_LANGUAGE_TAG = "src_lang";
 
@@ -104,10 +104,11 @@
 
     /**
      * Constructor.
+     * <p>
+     * TODO: Correct?
      * 
      * @param nodes The UML elements, typically classifiers, to generate.
-     * @param inModel <code>true</code> if the path is in the model. TODO:
-     *            Correct?
+     * @param inModel <code>true</code> if the path is in the model.
      */
     public ClassGenerationDialog(List<Object> nodes, boolean inModel) {
         super(Translator.localize("dialog.title.generate-classes"),
@@ -172,7 +173,8 @@
         contentPanel.add(centerPanel, BorderLayout.CENTER);
 
         // Output Directory
-        outputDirectoryComboBox = new JComboBox(getClasspathEntries().toArray());
+        outputDirectoryComboBox = 
+            new JComboBox(getClasspathEntries().toArray());
 
         JButton browseButton = new JButton();
         nameButton(browseButton, "button.browse");
@@ -317,7 +319,8 @@
                     }
                 } else {
                     // classify nodes by base path
-                    Map<String, Set<Object>> nodesPerPath = new HashMap<String, Set<Object>>();
+                    Map<String, Set<Object>> nodesPerPath = 
+                        new HashMap<String, Set<Object>>();
                     for (Object node : nodes) {
                         if (!Model.getFacade().isAClassifier(node)) {
                             continue;
@@ -372,7 +375,7 @@
 
     /**
      * Save the source language in the model.
-     * 
+     * <p>
      * TODO: Support multiple languages now that we have UML 1.4 tagged values.
      * 
      * @param node

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1443117

To unsubscribe from this discussion, e-mail: [[email protected]].
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.