Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
3843b37a
Commit
3843b37a
authored
Nov 21, 2017
by
Andreas Bayha
Browse files
GREEN
parent
0d95fa93
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.component.ui/trunk/src/org/fortiss/af3/component/ui/editor/PackComponentCommand.java
View file @
3843b37a
...
...
@@ -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 RE
D
Hash:
AA5FFDF3BB54B6524A0BC7EE6B6FB8EE
* @ConQAT.Rating
G
RE
EN
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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment