Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/actions/UnapplyStereotypeAction.java')
-rw-r--r--plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/actions/UnapplyStereotypeAction.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/actions/UnapplyStereotypeAction.java b/plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/actions/UnapplyStereotypeAction.java
index 07e99d4c..abd46468 100644
--- a/plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/actions/UnapplyStereotypeAction.java
+++ b/plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/actions/UnapplyStereotypeAction.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: UnapplyStereotypeAction.java,v 1.3 2006/01/05 16:17:45 khussey Exp $
+ * $Id: UnapplyStereotypeAction.java,v 1.4 2006/10/10 20:40:49 khussey Exp $
*/
package org.eclipse.uml2.uml.editor.actions;
@@ -40,7 +40,7 @@ public class UnapplyStereotypeAction
Collection collection) {
if (collection.size() == 1
- && collection.toArray()[0] instanceof Element) {
+ && collection.iterator().next() instanceof Element) {
return IdentityCommand.INSTANCE;
}
@@ -51,7 +51,7 @@ public class UnapplyStereotypeAction
public void run(IAction action) {
if (command != UnexecutableCommand.INSTANCE) {
- final Element element = (Element) collection.toArray()[0];
+ final Element element = (Element) collection.iterator().next();
List choiceOfValues = new ArrayList();

Back to the top