рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user