/*******************************************************************************
 * Copyright (c) 2012 itemis AG (http://www.itemis.eu) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package org.eclipse.xtext.validation;

import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.preferences.IPreferenceValues;
import org.eclipse.xtext.preferences.IPreferenceValuesProvider;

import com.google.inject.Inject;

/**
 * @author Sven Efftinge - Initial contribution and API
 * @since 2.4
 */
public class IssueSeveritiesProvider {
	
	@Inject private IPreferenceValuesProvider valuesProvider;
	@Inject private ConfigurableIssueCodesProvider issueCodesProvider;
	@Inject private SeverityConverter severityConverter;
	
	protected IPreferenceValuesProvider getValuesProvider() {
		return valuesProvider;
	}
	
	public IssueSeverities getIssueSeverities(Resource context) {
		IPreferenceValues preferenceValues = valuesProvider.getPreferenceValues(context);
		return new IssueSeverities(preferenceValues, issueCodesProvider.getConfigurableIssueCodes(), severityConverter);
	}
}

@@ -771,16 +771,79 @@
 and API%0A
+ * @author Stephane Galland - add calls to getValuesProvider()%0A
  * @sinc
@@ -1267,17 +1267,20 @@
 alues = 
-v
+getV
 aluesPro
@@ -1280,24 +1280,26 @@
 luesProvider
+()
 .getPreferen

Use getValuesProvider function in IssueSeveritiesProvider.