Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 254711

Summary: Constraints per Property
Product: [Modeling] M2T Reporter: Sven Efftinge <sven.efftinge>
Component: XpandAssignee: Dennis Huebner <dennis.huebner>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.7.0   
Target Milestone: M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 256426    
Bug Blocks: 254507    

Description Sven Efftinge CLA 2008-11-10 04:37:00 EST
+++ This bug was initially created as a clone of Bug #254507 +++

It must be possible to specify the property to which a constraint applies, not just the type. 

This enables the editor to just underline the property and not the whole (potentially quite large) element.
Comment 1 Sven Efftinge CLA 2008-11-25 04:19:59 EST
proposed syntax is:

context Entity#name ERROR "foo bar" :
  name!=null;

Comment 2 Dennis Huebner CLA 2008-11-26 08:11:56 EST
Fixed!
Feature name is stored in Diagnostic.getData with index = 1
Comment 3 Karsten Thoms CLA 2013-02-21 08:13:11 EST
Bug resolved before Xpand 1.2 release date => Closing