diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebProductInfo.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebProductInfo.java index 1121b7c81b..bec015a476 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebProductInfo.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebProductInfo.java @@ -17,6 +17,7 @@ package io.cloudbeaver.model; import io.cloudbeaver.server.CBApplication; +import org.eclipse.core.runtime.IProduct; import org.eclipse.core.runtime.Platform; import org.jkiss.dbeaver.model.meta.Property; import org.jkiss.dbeaver.utils.GeneralUtils; @@ -73,4 +74,10 @@ public class WebProductInfo { return CBApplication.getInstance().getInfoDetails(); } + @Property + public String getLatestVersionInfo() { + IProduct product = Platform.getProduct(); + return CommonUtils.notEmpty(product.getProperty("versionUpdateURL")); + } + } diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebServerConfig.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebServerConfig.java index 79a52d5b32..1022bf27b4 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebServerConfig.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebServerConfig.java @@ -20,8 +20,6 @@ import io.cloudbeaver.registry.WebServiceDescriptor; import io.cloudbeaver.registry.WebServiceRegistry; import io.cloudbeaver.server.CBApplication; import io.cloudbeaver.server.CBPlatform; -import org.eclipse.core.runtime.IProduct; -import org.eclipse.core.runtime.Platform; import org.jkiss.dbeaver.model.meta.Property; import org.jkiss.dbeaver.model.navigator.DBNBrowseSettings; import org.jkiss.dbeaver.registry.language.PlatformLanguageDescriptor; @@ -181,10 +179,4 @@ public class WebServerConfig { return new WebProductInfo(); } - @Property - public String getLatestVersionInfo() { - IProduct product = Platform.getProduct(); - return CommonUtils.notEmpty(product.getProperty("versionUpdateURL")); - } - }