Forbid multiple connections from IHierarchicElement -> Free Connector
- In the current implementation of
HierarchicElementConnectorConnectionCompositorBase.canConnect()
the condition that redirects the check if a IHierarchicElement (e.g., a logical component) to a Free Connector (e.g., a logical output port) to theHierarchicElementConnectorConnectionCompositorBase.canConnectInterally()
predicate is wrong - This results in the possibility to connect multiple logical
components to a single logical output port:
- Create a component architecture
- Create component A
- Create component B
- Create free output port P (to component architecture’s root component)
- Directly connect A to P (an output port is added to A)
- Directly connect B to P (an output port is added to B) <— This operation should not be possible
Note: In case the behavior should be different for other meta-models,
canConnectInterally()
should be overridden accordingly
(from redmine: issue id 2233, created on 2015-01-27, closed on 2015-08-03)
- Relations:
- relates #2235 (closed)