mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 19:55:48 +01:00
registered static methods as extensions (#1594)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
parent
8c83b60044
commit
545608dab3
@ -68,7 +68,14 @@ public class ScriptImplicitlyImportedTypes extends ImplicitlyImportedFeatures {
|
||||
result.remove(BigInteger.class);
|
||||
result.remove(BigDecimal.class);
|
||||
result.remove(double.class);
|
||||
|
||||
result.add(NumberExtensions.class);
|
||||
|
||||
result.add(BusEvent.class);
|
||||
result.add(HTTP.class);
|
||||
result.add(Log.class);
|
||||
result.add(Ping.class);
|
||||
result.add(ScriptExecution.class);
|
||||
result.add(URLEncoder.class);
|
||||
|
||||
result.addAll(getActionClasses());
|
||||
@ -78,12 +85,13 @@ public class ScriptImplicitlyImportedTypes extends ImplicitlyImportedFeatures {
|
||||
@Override
|
||||
protected List<Class<?>> getStaticImportClasses() {
|
||||
List<Class<?>> result = super.getStaticImportClasses();
|
||||
result.add(ScriptExecution.class);
|
||||
result.add(BusEvent.class);
|
||||
result.add(Exec.class);
|
||||
result.add(HTTP.class);
|
||||
result.add(Log.class);
|
||||
result.add(Ping.class);
|
||||
result.add(ScriptExecution.class);
|
||||
result.add(URLEncoder.class);
|
||||
|
||||
result.add(ImperialUnits.class);
|
||||
result.add(MetricPrefix.class);
|
||||
|
Loading…
Reference in New Issue
Block a user