Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Create Element and Link
Create Element and Link [message #694533] Fri, 08 July 2011 19:25
Elvis  is currently offline Elvis Friend
Messages: 15
Registered: May 2011
Junior Member
Hi people,

I have the following metamodel:

@namespace(uri="example", prefix="example")
package example;

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;
}"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,

Previous Topic:Generate Custom XML from Graphical Diagram
Next Topic:Problem Shared Editing Domain
Goto Forum:

Current Time: Thu Mar 04 10:41:29 GMT 2021

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

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

Back to the top