|
|
|
@ -22,11 +22,13 @@ import com.fr.design.utils.BrowseUtils;
|
|
|
|
|
import com.fr.file.filter.ChooseFileFilter; |
|
|
|
|
import com.fr.general.CloudCenter; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
import com.fr.stable.EncodeConstants; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.third.guava.collect.HashBiMap; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
import com.fr.workspace.server.repository.connection.ConnectionRepository; |
|
|
|
|
|
|
|
|
|
import javax.swing.JFileChooser; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
@ -331,7 +333,13 @@ public class JDBCDefPane extends JPanel {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initMap() { |
|
|
|
|
Map<String, DriverLoader> driverLoaders = DriverLoaderConfig.getInstance().getDriverLoaders(); |
|
|
|
|
Map<String, DriverLoader> driverLoaders = null; |
|
|
|
|
try { |
|
|
|
|
driverLoaders = ConnectionRepository.getInstance().getDriverLoaders(); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
driverLoaders = new HashMap<>(); |
|
|
|
|
} |
|
|
|
|
nameAndRepresent = getDriverLoaderAndRepresent(driverLoaders); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|