Commit 3843b37a authored by Andreas Bayha's avatar Andreas Bayha
Browse files

GREEN

parent 0d95fa93
......@@ -17,6 +17,7 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.editor;
import static org.fortiss.af3.component.utils.ComponentModelElementFactory.createChannelAndAttach;
import static org.fortiss.af3.component.utils.ComponentModelElementFactory.createInputPortAndAttach;
import static org.fortiss.af3.component.utils.ComponentModelElementFactory.createOutputPortAndAttach;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.copy;
......@@ -39,7 +40,7 @@ import org.fortiss.tooling.kernel.utils.UniqueIDUtils;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: AA5FFDF3BB54B6524A0BC7EE6B6FB8EE
* @ConQAT.Rating GREEN Hash: 0CECAB1EEBDC2379F747BCA6D771441C
*/
public class PackComponentCommand implements Runnable {
......@@ -104,9 +105,8 @@ public class PackComponentCommand implements Runnable {
for(Channel channel : inputPort.getIncomingChannels()) {
if(externChannels.contains(channel)) {
// TODO B19: static import
ComponentModelElementFactory.createChannelAndAttach(parentComp,
channel.getName(), channel.getSource(), input);
createChannelAndAttach(parentComp, channel.getName(),
channel.getSource(), input);
newComp.getConnections().add(channel);
channel.setSource(input);
} else {
......@@ -139,9 +139,8 @@ public class PackComponentCommand implements Runnable {
for(Channel channel : outputPort.getOutgoingChannels()) {
if(externChannels.contains(channel)) {
// B19: static import
ComponentModelElementFactory.createChannelAndAttach(parentComp,
channel.getName(), output, channel.getTarget());
createChannelAndAttach(parentComp, channel.getName(), output,
channel.getTarget());
newComp.getConnections().add(channel);
channel.setTarget(output);
} else {
......@@ -153,9 +152,7 @@ public class PackComponentCommand implements Runnable {
}
}
/**
* @return new component
*/
/** @return new component */
public Component getCreatedComponent() {
return newComp;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment