From 0c1de96f7ed5aae5c95cfeca16a2baaf240a284f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Porras=20Campo?= Date: Tue, 17 Mar 2026 10:46:11 +0100 Subject: [PATCH] feat: enable workflow run even if no xtext.ui is in the classpath --- .../modelinference/ModelInferenceFragment2.xtend | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/com.avaloq.tools.ddk.xtext.generator/src/com/avaloq/tools/ddk/xtext/generator/modelinference/ModelInferenceFragment2.xtend b/com.avaloq.tools.ddk.xtext.generator/src/com/avaloq/tools/ddk/xtext/generator/modelinference/ModelInferenceFragment2.xtend index 628265ca45..8d21063264 100644 --- a/com.avaloq.tools.ddk.xtext.generator/src/com/avaloq/tools/ddk/xtext/generator/modelinference/ModelInferenceFragment2.xtend +++ b/com.avaloq.tools.ddk.xtext.generator/src/com/avaloq/tools/ddk/xtext/generator/modelinference/ModelInferenceFragment2.xtend @@ -30,10 +30,12 @@ class ModelInferenceFragment2 extends AbstractXtextGeneratorFragment { .addTypeToTypeSingleton(IInferredModelAssociator.typeRef, InferredModelAssociator.typeRef) .addTypeToTypeSingleton(IDerivedStateComputer.typeRef, InferredModelAssociator.typeRef) .contributeTo(language.runtimeGenModule) - new GuiceModuleAccess.BindingFactory() - .addTypeToType(ReferenceQueryExecutor.typeRef, InferredModelReferenceQueryExecutor.typeRef) - .contributeTo(language.eclipsePluginGenModule) + if (projectConfig.eclipsePlugin.enabled) { + new GuiceModuleAccess.BindingFactory() + .addTypeToType(ReferenceQueryExecutor.typeRef, InferredModelReferenceQueryExecutor.typeRef) + .contributeTo(language.eclipsePluginGenModule) + } if (projectConfig.runtime.manifest !== null) { projectConfig.runtime.manifest.requiredBundles += "com.avaloq.tools.ddk.xtext"