Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1266 - trunk/src/org/tigris/gef/base/ModeCreateEdgeAndNode.java

gef
Discussion topic

Back to topic list

svn commit: r1266 - trunk/src/org/tigris/gef/base/ModeCreateEdgeAndNode.java

Author mvw
Full name Michiel van der Wulp
Date 2009-08-18 22:58:39 PDT
Message Author: mvw
Date: 2009-08-18 22:58:39-0700
New Revision: 1266

Modified:
   trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java

Log:
Corrected typos.
Added generics.

Modified: trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java
Url: http://gef.tigris.or​g/source/browse/gef/​trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java?vie​w=diff&pathrev=1​266&r1=1265&​r2=1266
====================​====================​====================​==================
--- trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java (original)
+++ trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java 2009-08-18 22:58:39-0700
@@ -55,7 +55,7 @@
  * the edge and makes an FigEdge and sends it to the back of the Layer.
  *
  * The argument "edgeClass" determines the type if edge to suggest that the
- * Editor's GraphModel construct. The GraphModel is responsible for acutally
+ * Editor's GraphModel construct. The GraphModel is responsible for actually
  * making an edge in the underlying model and connecting it to other model
  * elements.
  *
@@ -76,7 +76,7 @@
     // instance variables
 
     /**
- * The NetPort where the arc is paintn from.
+ * The NetPort where the arc is painted from.
      */
     private Object startPort;
 
@@ -126,7 +126,7 @@
      * The constructor.
      * <p>
      *
- * Preferrably use the constructor
+ * Preferably use the constructor
      * {@link #ModeCreateEdgeAndNode(Editor, Object, boolean, SelectionButtons)}
      * below, since it allows a better mechanism to create the node.
      *
@@ -314,10 +314,10 @@
                 mgm.addNode(newNode);
                 Fig encloser = null;
                 Rectangle bbox = fn.getBounds();
- List otherFigs = lay.getContents();
- Iterator others = otherFigs.iterator();
+ List<Fig> otherFigs = lay.getContents();
+ Iterator<Fig> others = otherFigs.iterator();
                 while (others.hasNext()) {
- Fig otherFig = (Fig) others.next();
+ Fig otherFig = others.next();
                     if (!(otherFig instanceof FigNode)) {
                         continue;
                     }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r1266 - trunk/src/org/tigris/gef/base/ModeCreateEdgeAndNode.java mvw Michiel van der Wulp 2009-08-18 22:58:39 PDT
Messages per page: