2021-11-30 17:25:45 +00:00
|
|
|
/*
|
|
|
|
* generated by Xtext 2.23.0
|
|
|
|
*/
|
2021-12-03 07:37:31 +00:00
|
|
|
package fr.n7.validation;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
import org.eclipse.xtext.preferences.PreferenceKey;
|
|
|
|
import org.eclipse.xtext.util.IAcceptor;
|
|
|
|
import org.eclipse.xtext.validation.ConfigurableIssueCodesProvider;
|
|
|
|
import org.eclipse.xtext.validation.SeverityConverter;
|
|
|
|
|
|
|
|
@SuppressWarnings("restriction")
|
2021-12-03 07:37:31 +00:00
|
|
|
public class GAMEConfigurableIssueCodesProvider extends ConfigurableIssueCodesProvider {
|
|
|
|
protected static final String ISSUE_CODE_PREFIX = "fr.n7.";
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
public static final String DEPRECATED_MODEL_PART = ISSUE_CODE_PREFIX + "deprecatedModelPart";
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void initialize(IAcceptor<PreferenceKey> acceptor) {
|
|
|
|
super.initialize(acceptor);
|
|
|
|
acceptor.accept(create(DEPRECATED_MODEL_PART, SeverityConverter.SEVERITY_WARNING));
|
|
|
|
}
|
|
|
|
}
|