Skip to content
Snippets Groups Projects
Commit 70d6cc77 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

YELLOw

parent 033400a7
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ $Id$
package org.fortiss.tooling.kernel.ui.internal.actions;
import static org.fortiss.tooling.kernel.ui.util.CopyPasteUtils.copyToClipboard;
import static org.fortiss.tooling.kernel.utils.KernelModelElementUtils.topParents;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
......@@ -25,7 +26,6 @@ import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionFactory;
import org.fortiss.tooling.kernel.ui.extension.base.EObjectActionBase;
import org.fortiss.tooling.kernel.utils.KernelModelElementUtils;
/**
* Action for copying the current selection.
......@@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.utils.KernelModelElementUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 454F12FE73DC98AC62710AAC69469E57
* @ConQAT.Rating YELLOW Hash: E45D26E4B82896D02D0BC166E36E248D
*/
public class CopyAction extends EObjectActionBase<EObject> {
......@@ -56,9 +56,7 @@ public class CopyAction extends EObjectActionBase<EObject> {
if(targets == null || targets.isEmpty()) {
return;
}
// TODO: B.19
EList<EObject> cleanedTargets = KernelModelElementUtils.topParents(targets);
copyToClipboard(KernelModelElementUtils.topParents(cleanedTargets));
copyToClipboard(topParents(targets));
}
/** {@inheritDoc} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment