[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[mdt-papyrus.dev] [Papyrus] Risk of regressions for Papyrus diagrams.
|
Hello everyone,
There has been changes in gmfgen files generated by GMF, from the M7.
One of them may eventually impact any diagram using generated figures
from a .gmfgraph file with Polyline objects.
It has already caused regressions in Activity diagram (corrected before
the freeze) and in Sequence diagram (still in correction).
Symptoms :
A polyline is no longer displayed. Especially in case it is supposed to
have changed.
Reasons :
In the final generated code, Polyline objects used to generate
org.eclipse.draw2d.Polyline instances. Whereas since the M7,
org.eclipse.draw2d.PolylineShape instances are generated instead.
Corrections :
In case you were updating the polyline's points manually, it should no
longer appear. To make it reappear, you must in addition call the method
org.eclipse.draw2d.Figure.setBounds(Rectangle) with the appropriate bounds.
In case your Polyline used to take the whole place, there should be no
more problem if you set the correct bounds (do not forget to take
figure's insets in account).
On the other hand, if your parent figure was containing other figures,
you may face layout problems. In such a case, do not hesitate to
consider changing the parent layout.
I Hope your diagrams won't be impacted.
Best regards,
Vincent Hémery.