提交 4cd2eabe 编写于 作者: J jurgen

Dependencies model

Former-commit-id: f9ca17e7
上级 64faab6f
......@@ -212,10 +212,15 @@ public class DriverLibraryMavenArtifact extends DriverLibraryAbstract
}
public void downloadLibraryFile(@NotNull DBRProgressMonitor monitor, boolean forceUpdate) throws IOException, InterruptedException {
MavenLocalVersion localVersion = resolveLocalVersion(monitor, forceUpdate);
if (localVersion.getArtifact().getRepository().isLocal()) {
// No need to download local artifacts
return;
monitor.beginTask("Update version information", 1);
try {
MavenLocalVersion localVersion = resolveLocalVersion(monitor, forceUpdate);
if (localVersion.getArtifact().getRepository().isLocal()) {
// No need to download local artifacts
return;
}
} finally {
monitor.done();
}
super.downloadLibraryFile(monitor, forceUpdate);
}
......
......@@ -469,7 +469,7 @@ public class DriverEditDialog extends HelpEnabledDialog
updateVersionButton = UIUtils.createToolButton(libsControlGroup, CoreMessages.dialog_edit_driver_button_update_version, new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
DriverDownloadDialog.updateDriverFiles(getShell(), driver, libList, true);
DriverDownloadDialog.updateDriverFiles(getShell(), driver, libList, false);
changeLibContent();
}
});
......
......@@ -26,7 +26,6 @@ import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
/**
* Driver library
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册