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

Bug 328748

Summary: Support model property services
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ling.hao
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2010-10-26 13:32:17 EDT
It is currently possible to register services for model elements, however many problems are better expressed by services that operate at property level. A model property service would need to be managed at the level of property instance (that is in the context of a particular element and a particular property). 

Current API:

<S extends ModelElementService> S service( Class<S> serviceType );
StandardModelElementService service();

Proposed API:

<S extends ModelElementService> S service( Class<S> serviceType );
<S extends ModelPropertyService> S service( ModelProperty property, Class<S> serviceType );

Existing code in StandardModelElementService and ValueSerializationService would be refactored into multiple model property services.
Comment 1 Konstantin Komissarchik CLA 2010-10-28 20:32:46 EDT
Enhancement implemented. Details available in the what's new document for 0.2 release.
Comment 2 Konstantin Komissarchik CLA 2010-11-16 12:19:34 EST
Marking as fixed.
Comment 3 Ling Hao CLA 2011-01-04 18:18:58 EST
Added a model property service in sapphire-extension.xml and invoked it from code.