The prefix of the class is generated from the base grammar. So if your grammar starts with
grammar ...
with org.eclipse.xtext.xbase.Xtype
the code generators will try to extend XtypeJavaValidtor
. If you derive from Xbase, it will use XbaseJavaValidtor
(i.e. name of grammar + JavaValidtor
)
This bug report contains a workaround:
Workaround: pass
inheritImplementation=false
in the workflow like this:fragment = validation.ValidatorFragment auto-inject { inheritImplementation = false }
Same is probably true for the
ImportNamespacesScopingFragment
,ContentAssistFragment
andQuickfixProviderFragment