Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Node position on creation
Node position on creation [message #1769550] Tue, 01 August 2017 14:06 Go to next message
sonny selhorst is currently offline sonny selhorstFriend
Messages: 60
Registered: May 2015
Member
Dear,

I would like to know if it is possible to have a node automatically appear next to an associated element on creation.

So for example, when I create a node and associate it to an edge (via an Open Dialog or Wizard), it automatically pops up next to the edge.

Thank you.

Kind regards,
Sonny
Re: Node position on creation [message #1769556 is a reply to message #1769550] Tue, 01 August 2017 14:53 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,

There is a bug corresponding to this problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=519278
It will be fixed in the next release. Theoretically, the element must be created at the mouse click location.

Regards,

Laurent


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Node position on creation [message #1769655 is a reply to message #1769556] Wed, 02 August 2017 12:44 Go to previous messageGo to next message
sonny selhorst is currently offline sonny selhorstFriend
Messages: 60
Registered: May 2015
Member
Dear Laurent,

Thank you for your response!

Kind regards,

Sonny
Re: Node position on creation [message #1787050 is a reply to message #1769655] Thu, 17 May 2018 20:54 Go to previous messageGo to next message
Adalberto Jr is currently offline Adalberto JrFriend
Messages: 36
Registered: December 2017
Member
Friends,

Is this bug fixed?

I'd like to create a node at the mouse click location, inside a container, but it is always created in the center of the diagram.

Tks.

[Updated on: Thu, 17 May 2018 20:55]

Report message to a moderator

Re: Node position on creation [message #1787231 is a reply to message #1787050] Tue, 22 May 2018 13:29 Go to previous messageGo to next message
Adalberto Jr is currently offline Adalberto JrFriend
Messages: 36
Registered: December 2017
Member
??
Re: Node position on creation [message #1787238 is a reply to message #1787231] Tue, 22 May 2018 15:51 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hello,

As you can see on the bugzilla, it is fixed (in Sirius 5.0.2 ) and reported through bugzilla 519117 to Sirius 5.1.0.

If your Node is not created in the container but in the diagram, I think that it is another problem. Maybe linked to your mapping description in the odesign file.

Regards,

Laurent


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Node position on creation [message #1787302 is a reply to message #1787238] Wed, 23 May 2018 13:01 Go to previous messageGo to next message
Adalberto Jr is currently offline Adalberto JrFriend
Messages: 36
Registered: December 2017
Member
Hello, Laurent.

Let me try to explain:

When I click in the container, the node appears (correctly related to the container), but in the middle of the diagram. So, I have to drag it back to the container. It's just an extra job for the user (drag back the node). If the node were already positioned in the container, it would be better. I think the initial position where the node is created could be clearer.

PS: it's not a problem of mapping. Just positioning.

Tks for your attention.

Regards.
Re: Node position on creation [message #1787307 is a reply to message #1787302] Wed, 23 May 2018 13:30 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hello,

If you have a simple reproduction use case, you can create a bug here [1]. Indeed, in theory, the middle of the diagram is used to create a node when Sirius as no information about where to create the node (for example when the clicked container does not correspond to the parent where the node is finally created). But in other case, the mouse location should be used.

Regards,

Laurent


[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Node position on creation [message #1787309 is a reply to message #1787307] Wed, 23 May 2018 13:42 Go to previous message
Adalberto Jr is currently offline Adalberto JrFriend
Messages: 36
Registered: December 2017
Member
Laurent,

I think it's not a bug because it only happens to me haha... It's probably a wrong configuration.

I followed the Sirius Tutorial to make the container and it seems easy (my project works fine). What fields in odesign file do you suggest I see to analyze this little problem?

Regards.
Previous Topic:Using EStructuralFeature
Next Topic:Node with more than one label
Goto Forum:
  


Current Time: Thu Mar 28 08:53:38 GMT 2024

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

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

Back to the top