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

Bug 423329

Summary: Remove 'type' field from orion.edit.model
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: 5.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-12-05 10:24:43 EST
The current design of orion.edit.model [1] expects providers to declare which types of events they want to receive in a types field. 

For example
> types: ["ModelChanged"]

This is redundant, because the provider also has to provide a service method with the name "onModelChanged".

It would be simpler for the provider to just provide the method(s), and omit the 'types' field entirely.

[1] http://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.model