EVL Validation and @gmf.link query [message #1336007] |
Tue, 06 May 2014 07:34 |
Shrikanth NC Messages: 31 Registered: February 2014 |
Member |
|
|
My emf
********
class Block {
}
@gmf.link(target.decoration="filledclosedarrow", width="3", label="Name", source="source", target="target", color="192,192,192")
class connect{
ref Block target;
ref Block source;
attr String Name;
}
@gmf.node(label.icon="true", label.placement="external", label="Name", figure="def.figures.DefaultTechnicalFigure")
class Login extends Block {
attr String Name;
@gmf.link(target.decoration="arrow", style="dash")
ref Logger[1] logger;
}
@gmf.node(label.icon="true", label.placement="external", label="Name", figure="def.figures.DefaultTechnicalFigure")
class Logger extends Block {
attr String Name;
}
*********************
My motivation : whenever Login block is present in diagram, error should appear if Logger is not connected. (via Edit > Validate )
It works.
My problem : Eugenia creates one more logger connection (under connections), I would like to reuse connect(gmf link) itself.
Kindly help!
Thanks,
Shrikanth NC
|
|
|
Re: EVL Validation and @gmf.link query [message #1338947 is a reply to message #1336007] |
Wed, 07 May 2014 12:55 |
|
Hi,
I'm afraid that this is not supported out of the box in Eugenia. You'll probably need to modify the generated .gmfgraph/.gmftool/.gmfmap models to achieve this. Once you've figured out the necessary modifications, you can use a polishing transformation to automate them.
Cheers,
Dimitris
|
|
|
|
Powered by
FUDForum. Page generated in 0.07228 seconds