Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Constraint at creation of nodes
Constraint at creation of nodes [message #203051] Fri, 22 August 2008 09:37 Go to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Hi,
I work on the new version of Papyrus tool and I would like to add
constraints at creation of nodes:
For example only active class can have reception, the constraint is :
(not self.isActive) implies self.ownedReception->isEmpty(). (context:
class)

I tried to put it on class node but there is no generated code for this
constraint.

I have changed the constraint and put on the reception node but the result
is the same.

So, what can I do?
Thanks,
Re: Constraint at creation of nodes [message #203062 is a reply to message #203051] Fri, 22 August 2008 10:07 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello P. Tessier,

Did you set "validationEnabled" property of GenDiagram before code generation?

-----------------
Alex Shatalin
Re: Constraint at creation of nodes [message #203103 is a reply to message #203062] Fri, 22 August 2008 12:16 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
yes,
but nothing is producted
Re: Constraint at creation of nodes [message #203150 is a reply to message #203103] Fri, 22 August 2008 14:40 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello P. Tessier,

> yes,
> but nothing is producted
AFAICSee at least ???ValidationProvider/ValidateAction should be generated.
Can you see these classes?

-----------------
Alex Shatalin
Previous Topic:GMF Editor should use additional notation model
Next Topic:mindmap in cvs
Goto Forum:
  


Current Time: Tue Apr 23 06:27:42 GMT 2024

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

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

Back to the top