[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Validator Trouble

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