рефакторинг. переносил текущие объекты в другое место

This commit is contained in:
2024-10-13 22:08:13 +03:00
parent 09b64218bd
commit 6afa2dc892
240 changed files with 1472 additions and 1518 deletions

View File

@@ -23,7 +23,7 @@ public class DownloadProject extends CurrentConnectionPass {
protected void ServerAction() throws Exception {
dialogOK = (UI.getRemoteFileChooser().ShowDialog(getDescription(), this, true));
if (dialogOK) {
src = Current.getRemoteFile();
src = Global.mainModule.getRemoteFile();
remote_archive = new RemoteFile(src.full_name, src.name + ".zip", false);
local_archive = Utils.getTempFileName(remote_archive.name);
if ((user.connection.getFileKBSize(src.full_name)) <= maxSize) {
@@ -42,12 +42,12 @@ public class DownloadProject extends CurrentConnectionPass {
} else throw new PassException("Размер проекта превышает " + maxSize + " KB.\n");
} else {
//диалога не вышло, сбрасываем файл.
Current_.set(Current.RemoteFile, null);
Global.mainModule.set(Current.RemoteFile, null);
}
}
@Override
protected boolean validate() {
Current_.Check(Log, Current.RemoteFile);
Global.mainModule.Check(Log, Current.RemoteFile);
return (Log.isEmpty());
}
@Override