|
Re: How to synchronize layouts between 2 representations? [message #1486716 is a reply to message #1481746] |
Tue, 25 November 2014 08:31 |
|
Hello,
See my answers below.
On 11/21/2014 08:33 AM, Sann Tran wrote:
> I have 2 representations R1 & R2 that represent the same model.
> The 2 representations are already opened in two diagram editors, and
> user can see 2 editor at the same time.
> What I need is to synchronize layout of R2 with R1. If layout of R1 is
> changed, layout of R2 have to be changed automatically.
Why do you need to keep those diagrams synchronised?
>
> It took me several days to find a solution to do that. And I still have
> no solution. So please tell me How can I do that?
You could provide a
org.eclipse.sirius.business.api.session.ModelChangeTrigger to the
org.eclipse.sirius.business.api.session.SessionEventBroker. The
SessionEventBroker is registered as a precommit listener and will
delegate the job to the ModelChangeTriggers. The idea is to react to the
GMF Bounds changes and update the other diagram.
You can obtain the SessionEventBroker from
org.eclipse.sirius.business.api.session.Session.getEventBroker().
>
> Thank you very much!
>
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02216 seconds