Element Based Edge Not show the line [message #1748312] |
Tue, 22 November 2016 03:43 |
David Piedra Messages: 6 Registered: November 2016 |
Junior Member |
|
|
Hello, I need represents an element based edge, I have my diagram and properties. However I don't know how I have to create a reference.
I have an structuralRelationship and Features. I need to connect two features.
This is my diagram:
StructuralRelationship is an element, and have the property: from (Feature) and to (Feature). The Feature has two properties, they are childs and parent; both have to be StructuralRelationship type.
It means if I connect Feature A and Feature B, properties are:
Feature A:
childs: StructuralRelationship
parent: None
Feature B:
childs: None
parent: StructuralRelationship
RelationShip:
from: Feature A
to: Feature B
This are my line to connect:
and this is my line creation:
I need to create an element based edge, but this not found, I can't draw the line. Help please.
-
Attachment: 1_001.png
(Size: 24.66KB, Downloaded 1181 times) -
Attachment: 2.png
(Size: 44.36KB, Downloaded 1154 times) -
Attachment: 3.png
(Size: 32.57KB, Downloaded 1153 times)
|
|
|
Re: Element Based Edge Not show the line [message #1748449 is a reply to message #1748312] |
Wed, 23 November 2016 09:44 |
|
Hi,
In your post, you seems have 2 problems. I'm not sure to understand if you don't succeed to display edge or if you don't succeed to create new Edges.
Have you relationships in your semantic model? If yes these relationships should be displayed in graphical representation.
I join you an example that works and look like your example.
Regards,
|
|
|
|
|
Re: Element Based Edge Not show the line [message #1748880 is a reply to message #1748643] |
Tue, 29 November 2016 16:49 |
David Piedra Messages: 6 Registered: November 2016 |
Junior Member |
|
|
I've tried to draw the lines, but I don't know what is the problem.
When I create a line using my .xmi file, there is no problem, the line draw very well. However when I try to draw with a click, the line draw, but with a red cross in the center, without options and when I press to save the project It show me an error:
!STACK 0
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: The object 'feature_Model.impl.StructuralRelationshipImpl@76358218 (lowerBound: 0, upperBound: 1)' is not contained in a resource.
I think the error is in the creation, because when I draw it from my .xmi file it is fine. I am creating the line:
mapping StructuralRelationship, -> begin, new change context -> var:source -> create new instance -> referenceName: childs, new set -> from: var:source -> new set -> to: var: target. I don't know what is te problem, please help me.
Thanks,
-
Attachment: 1-a.png
(Size: 23.73KB, Downloaded 1050 times) -
Attachment: 2-a.png
(Size: 29.67KB, Downloaded 1055 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06520 seconds