Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Uniqueness Check
Uniqueness Check [message #51270] Sun, 14 June 2009 15:27 Go to next message
Eclipse UserFriend
Hello,

I want to port my check for uniqueness from oAW to tmf. I had used:

context myDsl::Element ERROR "Duplicate Detected: " + this.name :
allElements().typeSelect(Element).select(e|e.name == this.name ==
this.name).size == 1;

This worked in oAW but now it gives an error. How is a uniqueness check to
be written?
Re: Uniqueness Check [message #51407 is a reply to message #51270] Mon, 15 June 2009 05:09 Go to previous message
Eclipse UserFriend
Solved.
Previous Topic:[Xtext] Code Formatting via menu, but "Source" menu is not present
Next Topic:Workflow Problem
Goto Forum:
  


Current Time: Thu Mar 13 13:57:26 EDT 2025

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

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

Back to the top