Skip to main content



      Home
Home » Eclipse Projects » Sirius » Node position on creation
Node position on creation [message #1769550] Tue, 01 August 2017 10:06 Go to next message
Eclipse UserFriend
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 10:53 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Node position on creation [message #1769655 is a reply to message #1769556] Wed, 02 August 2017 08:44 Go to previous messageGo to next message
Eclipse UserFriend
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 16:54 Go to previous messageGo to next message
Eclipse UserFriend
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 16:55] by Moderator

Re: Node position on creation [message #1787231 is a reply to message #1787050] Tue, 22 May 2018 09:29 Go to previous messageGo to next message
Eclipse UserFriend
??
Re: Node position on creation [message #1787238 is a reply to message #1787231] Tue, 22 May 2018 11:51 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Node position on creation [message #1787302 is a reply to message #1787238] Wed, 23 May 2018 09:01 Go to previous messageGo to next message
Eclipse UserFriend
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 09:30 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Node position on creation [message #1787309 is a reply to message #1787307] Wed, 23 May 2018 09:42 Go to previous message
Eclipse UserFriend
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: Mon Jul 21 10:17:51 EDT 2025

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

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

Back to the top