Home » Eclipse Projects » Sirius » Removing an Edge(Removing an Edge (relationship) from a diagram.)
|
Re: Removing an Edge [message #1689004 is a reply to message #1688464] |
Sun, 22 March 2015 11:30 |
Marcin Trycz Messages: 12 Registered: August 2014 |
Junior Member |
|
|
I'd advise to use english names in your projects, as it will make asking for help much easier, as it's easier to understand the semantics of your domain.
Also, you have not clearly stated *what exactly* your problem is, although as I get it, you're having problems in deleting an edge. Also, you did not state *what exactly* goes wrong (logs, errors, etc.)
I see you defined the "enlaces [0..*]" Reference, so it will probably be created as a *List of Pagina* inside your "pagina" object.
1. First of all, have you already tried using the default logic of Sirius, instead of implementing a custom "delete action"?
2. Are you able to act upon the bare Ecore instead of the Sirius diagram?
3. The way you defined your model, inside your "pagina" you'll have a *list* of references to other "pagina". If you unset that, you'll lose *all* of your outgoing edges form that "pagina". That's probably not what you want.
3b. Also, in your initial Ecore, you can specify the "unsettable" property on many things, this way you enable the "Unset" operation. But again, that's probably *not* what you want, as unsetting the *list* will make you loose *all* outgoing edges from that "pagina".
My best advice would be to just try the default delete logic (Ecore has a set of operations for basic model manipulation, and Sirius builds on that). If that fails, try to implement your "enalces" edge as an *object* based, instead of an *relation* based edge.
Good luck!
I'm just a user.
|
|
| |
Re: Removing an Edge [message #1708924 is a reply to message #1708912] |
Tue, 22 September 2015 13:46 |
|
Le 22/09/2015 14:57, Amine Lajmi a écrit :
> Hi,
Hi.
> I have the same problem with Christian, i.e. I'm unable to delete an
> edge based on a relation mapping. I think the problem has been *clearly*
> stated, and a lot of similar threads speak about this issue, and the
> fact is it's impossible to know what's going on under the hood as
> everything is done internally and there is no way to debug that stuff.
>
> Any updates about this ?
It seems we missed Christian's first post, but from what I understand of
the problem as stated by him, the solution he outlines works fine (see
the attached project), so I don't really know what more to say.
If your own case is different from what the one in the attached project,
we'll need more details.
Regards,
--
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| |
Goto Forum:
Current Time: Sat May 04 14:06:23 GMT 2024
Powered by FUDForum. Page generated in 0.04458 seconds
|