Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328748 - Support model property services
Summary: Support model property services
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2010-10-26 13:32 EDT by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

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