Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Don't Auto arrange at Container creation(How to prevent that sirius auto arrange the position of a new container)
Don't Auto arrange at Container creation [message #1736243] Mon, 27 June 2016 19:40 Go to next message
Matt Se is currently offline Matt SeFriend
Messages: 29
Registered: February 2016
Junior Member
Hi all,

everytime I create a new Instance from a Container Creation Tool from the palette, the new container isn't created at the position where I dropped my mouse but somewhere randomly in my diagram.

How to make sure that new containers are rendered at my desired position?

Thank you.

Regards,
Matt
Re: Don't Auto arrange at Container creation [message #1736254 is a reply to message #1736243] Mon, 27 June 2016 21:05 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Le 27/06/2016 à 21:40, Matt Se a écrit :
> Hi all,
>

Hi,

> everytime I create a new Instance from a Container Creation Tool from
> the palette, the new container isn't created at the position where I
> dropped my mouse but somewhere randomly in my diagram.
>

Is the "snap to grid" enabled [1] ? This can explain this "random" behavior.

> How to make sure that new containers are rendered at my desired position?
>

The container should be rendered at the desired position (except with
"snap" features).

> Thank you.
>
> Regards,
> Matt

Regards,

[1]
https://www.eclipse.org/sirius/doc/user/diagrams/Diagrams.html#Snaptogrid

--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Don't Auto arrange at Container creation [message #1736799 is a reply to message #1736254] Fri, 01 July 2016 20:14 Go to previous messageGo to next message
Matt Se is currently offline Matt SeFriend
Messages: 29
Registered: February 2016
Junior Member
Thanks for your help.

Diabling the "snap to grid" did not work.

But I found the issue.
I used Java Services to initialize my new EObject with some other EObject contents.
Turns out I have to perform these init Operation first, bevor adding the new EObject to it's parent to prevent this behavior.
Re: Don't Auto arrange at Container creation [message #1736881 is a reply to message #1736799] Mon, 04 July 2016 07:50 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Thank you for clarifying that the problem was solved

Le 01/07/2016 à 22:14, Matt Se a écrit :
> Thanks for your help.
>
> Diabling the "snap to grid" did not work.
>
> But I found the issue. I used Java Services to initialize my new EObject
> with some other EObject contents.
> Turns out I have to perform these init Operation first, bevor adding the
> new EObject to it's parent to prevent this behavior.


--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Autoresize compartment
Next Topic:How to get all Editparts from a Sirius Diagram
Goto Forum:
  


Current Time: Thu Sep 26 06:55:42 GMT 2024

Powered by FUDForum. Page generated in 0.05430 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top