Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » OCL Constraint: No two diagram elements have the same name.
OCL Constraint: No two diagram elements have the same name. [message #638215] Wed, 10 November 2010 14:38 Go to next message
Mostafa ElShafei is currently offline Mostafa ElShafeiFriend
Messages: 39
Registered: October 2010
Member
Dear all,

Can you please help me with an OCL constraint that returns false if there is two diagram elements of type Message that have the same name.

Thank you in advance.
Re: OCL Constraint: No two diagram elements have the same name. [message #638218 is a reply to message #638215] Wed, 10 November 2010 14:46 Go to previous message
Mostafa ElShafei is currently offline Mostafa ElShafeiFriend
Messages: 39
Registered: October 2010
Member
Hello,

The answer of my question is

messages->isUnique(c:Message|c.code)

Thanks anyway.
Previous Topic:UML2 domain file
Next Topic:Customizing compartment item labels
Goto Forum:
  


Current Time: Thu Apr 25 09:12:21 GMT 2024

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

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

Back to the top