Home » Modeling » Epsilon » [Eugenia] Can't draw link in generated editor.
[Eugenia] Can't draw link in generated editor. [message #770065] |
Fri, 23 December 2011 03:31  |
Eclipse User |
|
|
|
Hello,
following .emf-Code is given:
@gmf(foo="bar")
@namespace(uri="config", prefix="config")
package config;
@gmf.diagram(foo="bar", onefile="false")
class Diagramm {
!resolve val Action[*] actions;
!resolve val Data[*] sData;
}
// Data-Nodes
abstract class Data{
ref ActionInputLink[*]#theData actionInputs;
}
@gmf.node(label="name", figure="rounded", label.placement="none", color="50,55,55")
class ResultData extends Data {
ref ActionOutputLink#result actionOutput;
}
@gmf.node(label="name", figure="ellipse", label.placement="none", color="0,0,255")
class NewData extends Data {
}
// Action-Nodes
@gmf.node(label="name", figure="rounded", size="100,200", color="219,238,253")
class ZipAction extends Action {
@gmf.compartment(layout="list", collapsible="false")
val Destination[1..3] dest;
}
abstract class Action extends NamedElement {
!resolve val ActionInputLink[1]#action input;
!resolve val ActionOutputLink[1]#action output;
}
@gmf.node(label="name, param", figure="rectangle", label.icon="false", label.pattern="{0}: {1}")
class Destination extends NamedElement {
attr String param;
}
// Links
@gmf.link(source="theData", target="action",
target.decoration="arrow", style="dash", width="1")
class ActionInputLink {
ref Action#input action;
ref Data#actionInputs theData;
}
@gmf.link(source="action", target="result", color="130,130,130",
target.decoration="arrow", style="solid", width="3")
class ActionOutputLink {
ref Action#output action;
ref ResultData#actionOutput result;
}
// Baseclass
class NamedElement {
attr String name;
}
After creating the editor i am not able to draw an ActionOutputLink (Link from ZipAction to ResultNode).
What am i doing wrong here?
Note: This is basically similar to the basically gmf-Example ( gmfsamples.tuxfamily.org/wiki/doku.php?id=gmf_tutorial5#overview).
Since i dont know too much about gmf i am using eugenia, which helps me a lot to stay with GMF 
Thanks in advance.
Wolly
|
|
| | | | | |
Goto Forum:
Current Time: Wed Jul 23 06:43:02 EDT 2025
Powered by FUDForum. Page generated in 0.04752 seconds
|