From a5530323d37ab226c7e7123a04f0be9699ce7240 Mon Sep 17 00:00:00 2001
From: Simon Barner <barner@fortiss.org>
Date: Mon, 9 Oct 2017 14:41:50 +0000
Subject: [PATCH] YELLOW

Minor cleanup
---
 .../tooling/kernel/ui/util/CopyPasteUtils.java      | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/CopyPasteUtils.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/CopyPasteUtils.java
index 1f334d9c2..0c270c4f5 100644
--- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/CopyPasteUtils.java
+++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/CopyPasteUtils.java
@@ -1,7 +1,7 @@
 /*--------------------------------------------------------------------------+
 $Id$
 |                                                                          |
-| Copyright 2011 fortiss GmbH                     |
+| Copyright 2011 fortiss GmbH                                              |
 |                                                                          |
 | Licensed under the Apache License, Version 2.0 (the "License");          |
 | you may not use this file except in compliance with the License.         |
@@ -52,7 +52,7 @@ import org.fortiss.tooling.kernel.utils.CompositionUtils.PasteContext;
  * @author hummel
  * @author $Author$
  * @version $Rev$
- * @ConQAT.Rating YELLOW Hash: E78CEDA377694643C535E897AC120EB9
+ * @ConQAT.Rating YELLOW Hash: F038B29D264713E10278885EBBAA6685
  */
 public class CopyPasteUtils {
 
@@ -228,13 +228,13 @@ public class CopyPasteUtils {
 				}
 			}
 
-			String PREFIX = "Copy of ";
+			String prefix = "Copy of ";
 			String newName = copyName;
 			if(iterator == 1) {
-				newName = PREFIX + copyName;
+				newName = prefix + copyName;
 			} else if(iterator > 1) {
-				String realName = copyName.startsWith(PREFIX) ? copyName.split(" ")[2] : copyName;
-				newName = PREFIX + realName + " (" + iterator + ")";
+				String realName = copyName.startsWith(prefix) ? copyName.split(" ")[2] : copyName;
+				newName = prefix + realName + " (" + iterator + ")";
 			}
 			((INamedElement)copy).setName(newName);
 		}
@@ -245,7 +245,6 @@ public class CopyPasteUtils {
 	 * eConents of its container.
 	 */
 	private static EList<EObject> getContentsAtTwoLevels(EObject target) {
-
 		EList<EObject> containtsOfContainer = target.eContainer().eContents();
 		EList<EObject> contents = target.eContents();
 		EList<EObject> allContents = new BasicEList<EObject>();
-- 
GitLab