svn commit: r15152 - branches/gsoc2008/feature1_5138_bszanto/argouml-core-diagrams-sequence2/src/org/argouml/uml/diagram/sequence2/ui/SequenceDiagramRenderer.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bszanto
Date: 2008-07-03 05:13:21-0700
New Revision: 15152

Modified:
   branches/gsoc2008/feature1_5138_bszanto/argouml-core-diagrams-sequence2/src/org/argouml/uml/diagram/sequence2/ui/SequenceDiagramRenderer.java

Log:
Refactored makeNode(Object base) method and added comments.

Modified: branches/gsoc2008/feature1_5138_bszanto/argouml-core-diagrams-sequence2/src/org/argouml/uml/diagram/sequence2/ui/SequenceDiagramRenderer.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/feature1_5138_bszanto/argouml-core-diagrams-sequence2/src/org/argouml/uml/diagram/sequence2/ui/SequenceDiagramRenderer.java?view=diff&rev=15152&p1=branches/gsoc2008/feature1_5138_bszanto/argouml-core-diagrams-sequence2/src/org/argouml/uml/diagram/sequence2/ui/SequenceDiagramRenderer.java&p2=branches/gsoc2008/feature1_5138_bszanto/argouml-core-diagrams-sequence2/src/org/argouml/uml/diagram/sequence2/ui/SequenceDiagramRenderer.java&r1=15151&r2=15152
==============================================================================
--- branches/gsoc2008/feature1_5138_bszanto/argouml-core-diagrams-sequence2/src/org/argouml/uml/diagram/sequence2/ui/SequenceDiagramRenderer.java	(original)
+++ branches/gsoc2008/feature1_5138_bszanto/argouml-core-diagrams-sequence2/src/org/argouml/uml/diagram/sequence2/ui/SequenceDiagramRenderer.java	2008-07-03 05:13:21-0700
@@ -52,7 +52,12 @@
     private static final Logger LOG =
         Logger.getLogger(SequenceDiagramRenderer.class);
     
-    private Object makeNode(Object base) {
+    /**
+     * Creates a new Classifier Role with a specified base.
+     * @param base
+     * @return The new CR
+     */
+    private Object makeNewCR(Object base) {
         Object node = null;
         Editor ce = Globals.curEditor();
         GraphModel gm = ce.getGraphModel();
@@ -85,7 +90,7 @@
              * if the user tries to add a Class or an Actor, a new CR should be
              * created with the Class or the Actor as a Base.
              */
-            result = new FigClassifierRole(makeNode(node));
+            result = new FigClassifierRole(makeNewCR(node));
         }
         LOG.debug("SequenceDiagramRenderer getFigNodeFor " + result);
         lay.add(result);
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.