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

Bug 358268

Summary: Support severity for validation problems
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.3   
Target Milestone: 0.3 M2   
Hardware: PC   
OS: All   
Whiteboard:

Description Mark Macdonald CLA 2011-09-20 11:50:29 EDT
A validation service should be able to provide warnings in addition to errors.
Warnings should be displayed in the rulers with an appropriate icon.
Comment 1 Mark Macdonald CLA 2011-09-21 16:33:17 EDT
Released:
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=9b50d33dad31aa550bca00fad88d30d0c1756546

The validator service now accepts a 'severity' field on problems. Supported values are "error" (the default) and "warning".
In the UI, warnings are displayed as (!) icons in the annotation ruler, and the corresponding entries in the overview ruler are a light yellow color.

Updated service docs:
http://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.validator
Comment 2 Mark Macdonald CLA 2011-09-21 16:33:51 EDT
Also released a follow-up change that uses warnings to display "unused variable" information from JSLint:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f653d866ea474bbdd2a75eca75b8faf62698067f