mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 01:23:21 +08:00
Merge pull request #674 from dbeaver/feature/CB-1669
CB-1669 rollback web drivers filter
This commit is contained in:
+1
-6
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package io.cloudbeaver.registry;
|
||||
|
||||
import io.cloudbeaver.server.ConfigurationUtils;
|
||||
import org.eclipse.core.runtime.IConfigurationElement;
|
||||
import org.eclipse.core.runtime.IExtensionRegistry;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
@@ -61,11 +60,7 @@ public class WebDriverRegistry {
|
||||
}
|
||||
|
||||
public boolean isDriverEnabled(DBPDriver driver) {
|
||||
String driverId = driver.getFullId();
|
||||
if (webDrivers.contains(driverId)) {
|
||||
return ConfigurationUtils.isDriverEnabled(driver);
|
||||
}
|
||||
return false;
|
||||
return webDrivers.contains(driver.getFullId());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
package io.cloudbeaver.server;
|
||||
|
||||
import io.cloudbeaver.model.session.WebSessionManager;
|
||||
import io.cloudbeaver.registry.WebDriverRegistry;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.jkiss.code.NotNull;
|
||||
@@ -303,6 +304,9 @@ public class CBPlatform extends BasePlatformImpl {
|
||||
for (DBPDriver driver : dspd.getEnabledDrivers()) {
|
||||
List<? extends DBPDriverLibrary> libraries = driver.getDriverLibraries();
|
||||
{
|
||||
if (!WebDriverRegistry.getInstance().isDriverEnabled(driver)) {
|
||||
continue;
|
||||
}
|
||||
boolean hasAllFiles = true;
|
||||
for (DBPDriverLibrary lib : libraries) {
|
||||
if (!lib.isOptional() && lib.getType() != DBPDriverLibrary.FileType.license &&
|
||||
|
||||
Reference in New Issue
Block a user