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

Bug 354337

Summary: Property captions in validators should be taken from extension services
Product: z_Archived Reporter: Michael Ochmann <michael.ochmann>
Component: SkalliAssignee: Project Inbox <skalli.core-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Ochmann CLA 2011-08-10 03:53:32 EDT
ExtensionService#getCaption(propertyId) provides for all properties of a model extension a suitable caption. However, if one attaches a property validator to a project template (ProjectTemplate#getPropertysValidator(extension,propertyId)), there is currently no mechanism, to retrieve these property captions to render meaningful issue messages.

Proposed Solution:
1. DefaultProjectTemplate should bind to ExtensionService instances in the system (via OSGi DS mechansisms)
2. there should be a method getExtensionService(Class<T> extensionClass)
3. existing template validators should use that method to retrieve captions