Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Manage compartment by OCL
Manage compartment by OCL [message #493262] Sat, 24 October 2009 02:01 Go to next message
josiaspaesjr  is currently offline josiaspaesjr Friend
Messages: 28
Registered: July 2009
Junior Member
Hi all,

How can I test if a compartment is empty using OCL?

I need to add a constraint in my gmfmap using OCL.

Example:

if (myCompartment.isEmpty()){

//define restriction

}else{

//define restriction

}

Thanks,
Josias Paes
Re: Manage compartment by OCL [message #495090 is a reply to message #493262] Tue, 03 November 2009 17:43 Go to previous messageGo to next message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
Hello josiaspaesjr,

you can only write OCL code working with domain model elements, so you can
check something like self.myChildElements->size() = 0

-----------------
Alex Shatalin
Re: Manage compartment by OCL [message #495768 is a reply to message #495090] Thu, 05 November 2009 23:46 Go to previous message
josiaspaesjr  is currently offline josiaspaesjr Friend
Messages: 28
Registered: July 2009
Junior Member
Thanks

Smile
Previous Topic:Auto-layout (arrange all) of border items
Next Topic:Providing Quick Fix for GMF-Problems
Goto Forum:
  


Current Time: Thu Sep 19 19:24:39 GMT 2024

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

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

Back to the top