mirror of
https://github.com/Minres/RDL-Editor.git
synced 2025-10-25 09:51:44 +01:00
Migrated to XText 2.14 and Photon for RDL Editor RCP
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* generated by Xtext 2.13.0
|
||||
* generated by Xtext 2.14.0
|
||||
*/
|
||||
package com.minres.rdl.validation;
|
||||
|
||||
@@ -16,5 +16,4 @@ public abstract class AbstractRDLValidator extends AbstractDeclarativeValidator
|
||||
result.add(com.minres.rdl.rdl.RdlPackage.eINSTANCE);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* generated by Xtext 2.14.0
|
||||
*/
|
||||
package com.minres.rdl.validation;
|
||||
|
||||
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")
|
||||
public class RDLConfigurableIssueCodesProvider extends ConfigurableIssueCodesProvider {
|
||||
protected static final String ISSUE_CODE_PREFIX = "com.minres.rdl.";
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user