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

Bug 452148

Summary: Provide an Id for clients to tag validation problem objects with
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: EditorAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 450152    

Description Michael Rennie CLA 2014-11-18 11:32:24 EST
Part of the hover / quickfix story is that consumers need to be able to tell how a validation problem was created so they can know if their fixes apply or not.

We should add an optional Id field to the API problem object:  

https://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#The_Problem_object

that will remain with the annotation object - in turn being passed back during a quick-fix invocation, and being used to filter quick-fix contributions, for example:

validationProperties: [
  {source: "annotation:id", match: "no-extra-semi"} //$NON-NLS-1$ //$NON-NLS-0$
]