Closed himi closed 10 months ago
After this fix, the example,
package TestInheritedTransitions2 {
state s3 {
state s11 {
state s111;
state s112;
transition first s111 then s112;
}
}
state s2 :> s3 {
state s02 :> s3;
}
}
is correctly rendered as:
with SHOWINHERITED
style.
Because ConnectorUtil.getRelatedFeaturesOf()
cannot be used to resolve each end of connectors, I split this function into getRelatedFeatureOfEnd()
and moved the same one from VPath
. @seidewitz, if you do not like this change, please revert the change of a13dca3. But I believe this function is useful to manipulate connector ends. I also simplified getRelatedFeaturesOf()
as well.
Oops, I think using .toArray()
is to avoid ConcurrentModificationException
and I restored the code.
I fixed to support specifications as well as connector ends. Without 4e40cfd, for example, the specializations in
package TestSpecializations {
part p0 {
part p01;
}
action a1 {
action a11;
}
part p1 :> p0.p01 {
perform a1.a11;
}
}
are not rendered.
Inherited TransitionUsage and Sucession are not correctly rendered because the visualizer failed to recognized the inherited sources and targets. The main reason was that it did not use the ends of Successions. Rather it used getSource() and getTarget() of the derived features to render such connections. However, these are just referenced features and do not have information of the hierarchy of instances. This PR lets the visualizer use the end features to render Succession and Succession owned by TransitionUsage.