Skip to main content



      Home
Home » Eclipse Projects » Sirius » Duplicate
Duplicate [message #1781174] Fri, 02 February 2018 04:53 Go to next message
Eclipse UserFriend
hi guys, I have a problem.
I find myself in a strange situation, I have to make a diagram for a machine that passes between the various states through transitions. the elements of my diagram are
State
Initial State
Final State
Transition.
Initial and final State extend the State class.
when I go to create an initial state the diagram creates an initial state and a copy of the initial state in the State format. so I have 2 states with the same name.
how can I solve this problem?
Thanks in advance

in the case of the photo, as you can see, two s9 states are created.

Leonardo
Re: Duplicate [message #1781333 is a reply to message #1781174] Tue, 06 February 2018 02:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi

You can rename manually, or you can fix the bug in your expression that computes the default name.

Regards

Ed Willink
Re: Duplicate [message #1781341 is a reply to message #1781174] Tue, 06 February 2018 04:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

If you save this diagram, what do you have in your semantic model? Only one instance of S9 or 2 (one State and one InitialState)?
If you have only one instance, the problem is probably on the Semantic Candidates Expression of your mapping.
If you have 2 instances, the problem is probably on the definition of the meta-model or on the creation tool.

Regards,

Laurent
Re: Duplicate [message #1781883 is a reply to message #1781341] Wed, 14 February 2018 04:54 Go to previous messageGo to next message
Eclipse UserFriend
thank you very much
Re: Duplicate [message #1781914 is a reply to message #1781341] Wed, 14 February 2018 10:42 Go to previous messageGo to next message
Eclipse UserFriend
sorry, I have a problem again.
When I insert a transition into a utransition, a clone is created that happens when I create another Utransition within a utransition.
do you have an idea how I could solve this problem? I am attaching my ecore.
in the image of the diagram those in the blue are the utransition, those in gray the transitions
Re: Duplicate [message #1781965 is a reply to message #1781914] Thu, 15 February 2018 06:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi Leonardo,

It seems you should improve/restric the semantic candidates expressions of you mappings, if they are empty they will return all compatible elements of your resource set (domain class check only).
From your ecore model and you description, something like aql:self.alternatives or aql:self.uPoints should be sufficient to restrict the elements to display to the current containment level.


Regards,

Maxime
Re: Duplicate [message #1781987 is a reply to message #1781965] Thu, 15 February 2018 08:58 Go to previous message
Eclipse UserFriend
hi maxime,
thank you for you reply.
i solved by inserting a thisEObject


Regards
Previous Topic:Loading Representation File(s)
Next Topic:Show / Hide Dialog Automatic child selection
Goto Forum:
  


Current Time: Thu Jul 17 08:20:25 EDT 2025

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

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

Back to the top