Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] [Papyrus] Risk of regressions for Papyrus diagrams.

Dear Vincent,

I might be totally wrong, but since it helps to set the bounds
explicitly, it may be related to the fixed GMF bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=319191
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=319348)
As far as I know, GMF 2.3.1 is not yet used by Papyrus.

Best regards

Ansgar

PS: Regression is a big problem in general, as we do not have automated
tests ...


On 08/05/2010 05:45 PM, Vincent Hémery wrote:
> 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.
> _______________________________________________
> mdt-papyrus.dev mailing list
> mdt-papyrus.dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
>


-- 
Ansgar Radermacher                CEA/DRT/DILS/LISE
http://www-list.cea.fr/index.htm
http://www2.cs.unibw.de/alumni/Ansgar/
phone: +33 16908 3812
mailto: ansgar.radermacher@xxxxxx




Back to the top