mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 01:23:21 +08:00
dbeaver/dbeaver-ee#1905 Driver controller model, use config controllers to load/save drivers
This commit is contained in:
-10
@@ -72,16 +72,6 @@ public class WebPlatformActivator extends Plugin {
|
||||
super.stop(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns configuration file
|
||||
*/
|
||||
public static synchronized File getConfigurationFile(String fileName) {
|
||||
if (configDir == null) {
|
||||
configDir = getInstance().getStateLocation().toFile();
|
||||
}
|
||||
return new File(configDir, fileName);
|
||||
}
|
||||
|
||||
public DBPPreferenceStore getPreferences() {
|
||||
return preferences;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ import io.cloudbeaver.registry.WebDriverRegistry;
|
||||
import io.cloudbeaver.service.session.WebSessionManager;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.eclipse.core.runtime.Plugin;
|
||||
import org.jkiss.code.NotNull;
|
||||
import org.jkiss.code.Nullable;
|
||||
import org.jkiss.dbeaver.DBException;
|
||||
@@ -268,10 +269,9 @@ public class CBPlatform extends BasePlatformImpl {
|
||||
return folder.toFile();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public File getConfigurationFile(String fileName) {
|
||||
return WebPlatformActivator.getConfigurationFile(fileName);
|
||||
protected Plugin getProductPlugin() {
|
||||
return WebPlatformActivator.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user