Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL Validation and @gmf.link query
EVL Validation and @gmf.link query [message #1336007] Tue, 06 May 2014 07:34 Go to next message
Shrikanth NC is currently offline Shrikanth NCFriend
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 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

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
Re: EVL Validation and @gmf.link query [message #1340605 is a reply to message #1338947] Thu, 08 May 2014 05:21 Go to previous message
Shrikanth NC is currently offline Shrikanth NCFriend
Messages: 31
Registered: February 2014
Member
Fine, Will try that and keep you posted.

Thanks,
Shrikanth NC
Previous Topic:Using [ETL] or [Flock] with files from different xtext grammars
Next Topic:[Eugenia] Diagram partitioning
Goto Forum:
  


Current Time: Fri Apr 26 07:17:03 GMT 2024

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

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

Back to the top