mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-1433 Latest version obtain API fix
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user