problem with "source.constraint" Eugenia annotation [message #1062272] |
Thu, 06 June 2013 18:07  |
Eclipse User |
|
|
|
Hello,
I am just trying to add a simple OCL constraint to my diagram, the one that prohibits link self-reference.
Even though I can add it when manually by changing the gmfmap model, I cannot make it work with the Eugenia annotation ("source.constraint"). Is there a bug here? Or am I missing something? I am using the latest Epsilon bundle.
Here is a sample Emfatic code to reproduce the problem:
@namespace(uri="test", prefix="test")
@gmf(foo="bar")
package test;
@gmf.diagram(foo="bar")
class Test {
val Clazz[*] classes;
val Relation[*] relations;
}
@gmf.node(figure="rectangle")
class Clazz {
attr String name;
}
@gmf.link(source="start", target="end",
source.constraint="self <> oppositeEnd")
class Relation {
ref Clazz[1] start;
ref Clazz[1] end;
}
Thanks for any help!
Ilias
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02974 seconds