svn commit: r17529 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionCompartmentDisplay.java

Michiel van der Wulp <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2009-11-23 09:43:45-0800
New Revision: 17529

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionCompartmentDisplay.java

Log:
Prepare for more refactoring.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionCompartmentDisplay.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionCompartmentDisplay.java?view=diff&pathrev=17529&r1=17528&r2=17529
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionCompartmentDisplay.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionCompartmentDisplay.java	2009-11-23 09:43:45-0800
@@ -304,10 +304,7 @@
      */
     @Override
     public void actionPerformed(ActionEvent ae) {
-	Iterator i =
-            Globals.curEditor().getSelectionManager().selections().iterator();
-	while (i.hasNext()) {
-	    final Selection sel = (Selection) i.next();
+        for (Selection sel : Globals.curEditor().getSelectionManager().getSelections()) {
 	    final Fig f = sel.getContent();
 
             // Perform the action

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

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.