mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[xtext generator] improved 'QuickfixProviderFragment2' as suggested in review
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
This commit is contained in:
parent
779f30fac9
commit
8f52d3adf6
1 changed files with 7 additions and 7 deletions
|
@ -76,20 +76,20 @@ class QuickfixProviderFragment2 extends AbstractGeneratorFragment2 {
|
|||
instanceClass
|
||||
).contributeTo(language.eclipsePluginGenModule);
|
||||
|
||||
if (!generateStub) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (projectConfig.eclipsePluginSrc !== null) {
|
||||
if (generateStub && projectConfig.eclipsePluginSrc !== null) {
|
||||
if (preferXtendStubs) {
|
||||
generateXtendQuickfixProvider
|
||||
} else {
|
||||
generateJavaQuickfixProvider
|
||||
}
|
||||
|
||||
projectConfig.eclipsePluginManifest.exportedPackages += grammar.quickfixProviderClass.packageName
|
||||
if (projectConfig.eclipsePluginManifest != null) {
|
||||
projectConfig.eclipsePluginManifest.exportedPackages += grammar.quickfixProviderClass.packageName
|
||||
}
|
||||
|
||||
addRegistrationToPluginXml
|
||||
if (projectConfig.eclipsePluginPluginXml != null) {
|
||||
addRegistrationToPluginXml
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue