Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » OCL statement in mapping to prevent node creation
OCL statement in mapping to prevent node creation [message #535719] Tue, 25 May 2010 11:51
Eclipse UserFriend
Originally posted by:


I tried to use OCL statements in the mapping to prevent users creating
nodes if the statements evaluate to false. The intention was to hinder
the user to create invalid models, as in the ecore file there are
further OCL statements. However it only toggles the visabillity of the
nodes thus not only generating an invalid model but further conceal the
reason to users who won't check their model in tree view.

Missed I something? As far as I remember one could prevent link creation
with OCL statements. Why not node creation? Or is the only possible way
using edit helper?

Many thanks in advance,
Previous Topic:How to disable the node in the tool palette
Next Topic:Link doesn't show when adding a connection between nodes
Goto Forum:

Current Time: Tue May 21 11:37:22 GMT 2024

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

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

Back to the top