How to disable the auto triggered arrange action after a new semantic is added to the model? [message #1835140] |
Wed, 25 November 2020 08:28  |
Eclipse User |
|
|
|
Hi,
I found that when I use java service to add a new semantic element into the model, for example:
FuncUnit unit = MetamodelFactory.eINSTANCE.createFuncUnit();
chip.getFuncUnits().add(unit); // chip is a semantic element already in the model, which holds a bunch of function units
after the service is called, an arrange action will be triggered automatically, due to the executeLayoutDueToExternalChanges() in SiriusCanonicalLayoutCommand. I'm working on create a semantic by java service and set its location and size by directly change its basis gmf node, but the auto triggered arrange action ruins my previous steps of setting the gmf node's location and size.
So is there any way to prevent the arrange action from auto trigger? I cannot use SiriusLayoutDataManager because besides location and size I also had to set its style and other graphical informations. Just need a hint about how to disable the auto arrange from SiriusCanonicalLayoutCommand. Any advice helps a lot.
Thanks.
Yufei Zhou
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05893 seconds