[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Node Constraint Problem

Hi there! I've added an OCL constraint to one of my nodes in the mapping model. I'd like to notify the user when the node has no name, so my constraint looks like:

name.size() > 0

However, when I add the node to the diagram it the node simply disappears (but the diagram is dirty). Validation and Live validation With UI Feedback are enabled and Decorators too. I've tried adding an audit rule with the same constraint also. A few questions:

1. Does Live validation just examine the audit rules?
2. How can I set it so when the user adds a node to the diagram and fails to specify a name, the editor will complain, via decorator or message-box?


Thanks!

Maurice