Bug 354337 - Property captions in validators should be taken from extension services
Summary: Property captions in validators should be taken from extension services
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Skalli (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 03:53 EDT by Michael Ochmann CLA
Modified: 2022-10-03 10:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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