Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Node constraint
Node constraint [message #101020] Mon, 05 February 2007 13:00 Go to next message
Eclipse UserFriend
Originally posted by: grekier.gmail.com

Hi all.

I am trying to create a diagram and it is working fine so far.
But, now, I would like to put in some constraints about the number of
specific nodes present in the canvas (like "only one start node in a
diagram").

Could someone help me there?

Thanks.

Geo
Re: Node constraint [message #101388 is a reply to message #101020] Tue, 06 February 2007 05:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: grekier.gmail.com

Geoffrey Rekier wrote:
> Hi all.
>
> I am trying to create a diagram and it is working fine so far.
> But, now, I would like to put in some constraints about the number of
> specific nodes present in the canvas (like "only one start node in a
> diagram").
>
> Could someone help me there?
>
> Thanks.
>
> Geo
I must also say that I cannot change the model. It must be done in the
mapping. And I cannot find anything that would "count" in the model so I
am stuck.

Please help


Geo
Re: Node constraint [message #101447 is a reply to message #101388] Tue, 06 February 2007 07:57 Go to previous messageGo to next message
Eclipse UserFriend
Hello Geoffrey,

> I must also say that I cannot change the model. It must be done in the
> mapping. And I cannot find anything that would "count" in the model so
Check .size() operation for the collections in OCL specification.

-----------------
Alex Shatalin
Re: Node constraint [message #101581 is a reply to message #101447] Tue, 06 February 2007 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: grekier.gmail.com

Alex Shatalin wrote:
> Hello Geoffrey,
>
>> I must also say that I cannot change the model. It must be done in the
>> mapping. And I cannot find anything that would "count" in the model so
> Check .size() operation for the collections in OCL specification.
>
> -----------------
> Alex Shatalin
>
>
I am very confused with the GMF constraints and cannot find something
(doc, tutorial,etc...) to help me out.
I tried something like this. But without success. I can't find out where
to find the collection or how I can create one.

Could you point me to something?


Thanks.
Re: Node constraint [message #102208 is a reply to message #101581] Thu, 08 February 2007 06:34 Go to previous message
Eclipse UserFriend
Hi Geoffrey,

Try reading the following
http://wiki.eclipse.org/index.php/GMF_Constraints
http://wiki.eclipse.org/index.php/GMF_Tutorial_Part_2#Valida tion

Regards,
/Radek

On Tue, 06 Feb 2007 16:48:52 +0100, Geoffrey Rekier <grekier@gmail.com>
wrote:

> Alex Shatalin wrote:
>> Hello Geoffrey,
>>
>>> I must also say that I cannot change the model. It must be done in the
>>> mapping. And I cannot find anything that would "count" in the model so
>> Check .size() operation for the collections in OCL specification.
>> -----------------
>> Alex Shatalin
>>
> I am very confused with the GMF constraints and cannot find something
> (doc, tutorial,etc...) to help me out.
> I tried something like this. But without success. I can't find out where
> to find the collection or how I can create one.
>
> Could you point me to something?
>
>
> Thanks.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:Properties don´t show up in properties view after renaming
Next Topic:Integrating EMF And GMF generated editor - please review and comment
Goto Forum:
  


Current Time: Sat Jul 12 17:54:42 EDT 2025

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

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

Back to the top