Skip to main content



      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 07:51
Eclipse UserFriend
Originally posted by: christian.busch2.gmx.de

Hey,

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,
Christian
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: Sun Apr 27 20:19:36 EDT 2025

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

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

Back to the top