Create Element and Link [message #694533] |
Fri, 08 July 2011 19:25 |
Elvis Messages: 15 Registered: May 2011 |
Junior Member |
|
|
Hi people,
I have the following metamodel:
@namespace(uri="example", prefix="example")
package example;
@gmf.diagram(foo="bar")
class Schema {
val Entity[*] entity_schema;
val Attribute[*] attribute_schema;
val LinkAttribute[*] linkAttribute_schema;
}
@gmf.node(label="name", label.icon="false", figure="rectangle", size="100,50")
class Entity {
id attr String identity;
attr String name;
}
@gmf.node(label="name", label.icon="false", figure="ellipse", size="100,50")
class Attribute {
id attr String identity;
attr String name;
}
@gmf.link(source="source", target="target")
class LinkAttribute {
ref Entity[1] source;
ref Attribute[1] target;
}
And I'm trying to implement it as follows: After creating an Entity, I want to select the Attribute on the objects palette, click on the Entity
created to create a new Attribute with a new LinkAttribute connected in the selected Entity.
Would anyone have any suggestions for how to do this?
Thanks for the help
Best regards,
Elvis
|
|
|
Powered by
FUDForum. Page generated in 0.02810 seconds