Element Based Edge Not show the line [message #1748312] |
Mon, 21 November 2016 22:43  |
Eclipse User |
|
|
|
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 1257 times)
Attachment: 2.png
(Size: 44.36KB, Downloaded 1224 times)
Attachment: 3.png
(Size: 32.57KB, Downloaded 1220 times)
|
|
|
|
|
|
Re: Element Based Edge Not show the line [message #1748880 is a reply to message #1748643] |
Tue, 29 November 2016 11:49   |
Eclipse User |
|
|
|
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 1092 times)
Attachment: 2-a.png
(Size: 29.67KB, Downloaded 1099 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07835 seconds