diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java index dc8d562..c9bfbd5 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java @@ -755,7 +755,7 @@ DataTransferChannel ch2 = parser.parseChannel(getModel()); for (ChannelMember chm2: ch2.getInputChannelMembers()) { for (ChannelMember chm: ch.getInputChannelMembers()) { - if (chm2.getResource() == chm.getResource()) { + if (chm2.getResource().getResourceHierarchy() == chm.getResource().getResourceHierarchy()) { chm.setStateTransition(chm2.getStateTransition()); break; } @@ -763,7 +763,7 @@ } for (ChannelMember chm2: ch2.getOutputChannelMembers()) { for (ChannelMember chm: ch.getOutputChannelMembers()) { - if (chm2.getResource() == chm.getResource()) { + if (chm2.getResource().getResourceHierarchy() == chm.getResource().getResourceHierarchy()) { chm.setStateTransition(chm2.getStateTransition()); break; } @@ -771,7 +771,7 @@ } for (ChannelMember chm2: ch2.getReferenceChannelMembers()) { for (ChannelMember chm: ch.getReferenceChannelMembers()) { - if (chm2.getResource() == chm.getResource()) { + if (chm2.getResource().getResourceHierarchy() == chm.getResource().getResourceHierarchy()) { chm.setStateTransition(chm2.getStateTransition()); break; }