Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Validator Trouble
icon5.gif  Validator Trouble [message #485438] Fri, 11 September 2009 17:42
Calin Medianu is currently offline Calin MedianuFriend
Messages: 12
Registered: July 2009
Junior Member
I added an audit rule

not self.name.oclIsUndefined() and self.name <> '' and the appropriate Domain Element target.

The node it applies to can have the name edited via a Label or via the property sheet.

If the node has a name and I try to unset it via the property sheet, validation fires when the property sheet loses focus, as expected. When I edit it via the label, validation does not fire. How could I prevent users from dragging the node on the canvas and leaving the name blank? Validation does not fire in this case either.

Thanks,

Calin
Previous Topic:subeditor change & save wipeout content of parenteditor
Next Topic:Circles as resize handles
Goto Forum:
  


Current Time: Thu Apr 25 10:07:59 GMT 2024

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

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

Back to the top