You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: com.avaloq.tools.ddk.check.runtime.core/src/com/avaloq/tools/ddk/check/runtime/validation/DefaultCheckValidator.java
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ public class DefaultCheckValidator extends AbstractCheckValidator {
33
33
@Named(Constants.LANGUAGE_NAME)
34
34
privateStringhostLanguage;
35
35
36
-
@Inject
36
+
@Inject(optional = true)
37
37
privateIGrammarAccessgrammarAccess;
38
38
39
39
@Override
@@ -49,7 +49,7 @@ public void register(final EValidatorRegistrar registrar) {}
49
49
50
50
/**
51
51
* At this point, {@link #grammarAccess} has been injected. See {@link #register(EValidatorRegistrar)}.
52
-
*
52
+
*
53
53
* @param registrar
54
54
* the validator registrar
55
55
*/
@@ -61,14 +61,15 @@ public void register2(final EValidatorRegistrar registrar) {
61
61
@Override
62
62
protectedList<EPackage> getEPackages() {
63
63
List<EPackage> result = Lists.newArrayList();
64
-
for (AbstractMetamodelDeclarationdecl : grammarAccess.getGrammar().getMetamodelDeclarations()) {
0 commit comments