diff --git a/bundles/org.openhab.core.model.rule/src/org/openhab/core/model/rule/RulesRuntimeModule.xtend b/bundles/org.openhab.core.model.rule/src/org/openhab/core/model/rule/RulesRuntimeModule.xtend index ae9441751..6a93f2827 100644 --- a/bundles/org.openhab.core.model.rule/src/org/openhab/core/model/rule/RulesRuntimeModule.xtend +++ b/bundles/org.openhab.core.model.rule/src/org/openhab/core/model/rule/RulesRuntimeModule.xtend @@ -18,11 +18,11 @@ org.openhab.core.model.rule import com.google.inject.Binder import com.google.inject.name.Names -import org.openhab.core.model.rule.scoping.RulesImplicitlyImportedTypes import org.openhab.core.model.rule.scoping.RulesJavaReflectAccess import org.openhab.core.model.script.interpreter.ScriptInterpreter import org.openhab.core.model.script.jvmmodel.ScriptTypeComputer import org.openhab.core.model.script.scoping.ActionClassLoader +import org.openhab.core.model.script.scoping.ScriptImplicitlyImportedTypes import org.openhab.core.model.script.scoping.ScriptImportSectionNamespaceScopeProvider import org.openhab.core.model.script.scoping.StateAndCommandProvider import org.eclipse.xtext.common.types.access.IJvmTypeProvider @@ -54,7 +54,7 @@ import org.eclipse.xtext.xbase.typesystem.computation.ITypeComputer } def Class bindImplicitlyImportedTypes() { - return RulesImplicitlyImportedTypes + return ScriptImplicitlyImportedTypes } def Class bindStateAndCommandProvider() { diff --git a/bundles/org.openhab.core.model.rule/src/org/openhab/core/model/rule/scoping/RulesImplicitlyImportedTypes.java b/bundles/org.openhab.core.model.rule/src/org/openhab/core/model/rule/scoping/RulesImplicitlyImportedTypes.java deleted file mode 100644 index 34e01a038..000000000 --- a/bundles/org.openhab.core.model.rule/src/org/openhab/core/model/rule/scoping/RulesImplicitlyImportedTypes.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2010-2026 Contributors to the openHAB project - * - * See the NOTICE file(s) distributed with this work for additional - * information. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0 - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.openhab.core.model.rule.scoping; - -import org.openhab.core.model.script.scoping.ScriptImplicitlyImportedTypes; - -import com.google.inject.Singleton; - -/** - * This class registers all statically available functions as well as the - * extensions for specific jvm types, which should only be available in rules, - * but not in scripts - * - * @author Kai Kreuzer - Initial contribution - * @author Oliver Libutzki - Xtext 2.5.0 migration - */ - -@Singleton -public class RulesImplicitlyImportedTypes extends ScriptImplicitlyImportedTypes { - -}