no message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Database.Database;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
@@ -40,7 +40,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
"Черновик отчёта об ошибке.\nЗаполните описание ошибочной ситуации, и нажмите 'Опубликовать'", version);
|
||||
return true;
|
||||
} else {
|
||||
if (CommonUI.Warning("Создать отчёт об ошибке без прикрепления проекта.")) {
|
||||
if (UI_.Warning("Создать отчёт об ошибке без прикрепления проекта.")) {
|
||||
target = new BugReport();
|
||||
target.genName();
|
||||
target.sender_name = Current.getAccount().name;
|
||||
@@ -48,7 +48,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
target.project_version = "";
|
||||
target.visualiser_version = Global.visualiser.version;
|
||||
target.sapfor_version = Global.Components.get(ComponentType.Sapfor_F).version;
|
||||
target.sapfor_settings =((GlobalDatabase)CommonUtils.db).settings.getSapforSettingsText();
|
||||
target.sapfor_settings =((GlobalDatabase) Utils_.db).settings.getSapforSettingsText();
|
||||
target.percentage = 0;
|
||||
target.description = "Черновик отчёта об ошибке.\nЗаполните описание ошибочной ситуации, и нажмите 'Опубликовать'";
|
||||
target.date = new Date().getTime();
|
||||
@@ -72,7 +72,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
//логи во вложения.
|
||||
File attachementsDir = Current.getProject().getAttachmentsDirectory();
|
||||
Vector<File> logs = new Vector<>();
|
||||
logs.add(CommonUtils.MainLog.getLogFile());
|
||||
logs.add(Utils_.MainLog.getLogFile());
|
||||
logs.add(Paths.get(Global.ComponentsDirectory.getAbsolutePath(), "Sapfor_log.txt").toFile());
|
||||
logs.add(Paths.get(Global.ComponentsDirectory.getAbsolutePath(), "Server_log.txt").toFile());
|
||||
logs.add(Global.Components.get(ComponentType.Visualizer_2).getLogFile());
|
||||
@@ -86,7 +86,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected boolean validate() {
|
||||
double size = CommonUtils.getFileSizeMegaBytes(BugReportInterface.getArchiveFile(target));
|
||||
double size = Utils_.getFileSizeMegaBytes(BugReportInterface.getArchiveFile(target));
|
||||
if (size > 100) {
|
||||
Log.Writeln_("Размер запакованного вложения " + size + " Мб превышает 100 Мб");
|
||||
return false;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
import _VisualDVM.GlobalData.Machine.Machine;
|
||||
import Common.Passes.AddObjectPass;
|
||||
@@ -11,7 +11,7 @@ public class AddCompiler extends AddObjectPass<Compiler> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
@Override
|
||||
public Class<? extends DBObject> getOwner() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
||||
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||
import Common.Passes.AddObjectPass;
|
||||
@@ -15,6 +15,6 @@ public class AddDVMParameter extends AddObjectPass<DVMParameter> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
||||
@@ -20,9 +20,9 @@ public class AddDVMParameterForTesting extends Pass<String> {
|
||||
if (name.isEmpty())
|
||||
Log.Writeln("Имя параметра DVM системы не может быть пустым.");
|
||||
if (Utils.isLinuxSystemCommand(name))
|
||||
Log.Writeln(CommonUtils.DQuotes(name) + " является системной командой Linux");
|
||||
Log.Writeln(Utils_.DQuotes(name) + " является системной командой Linux");
|
||||
if (Utils.isLinuxSystemCommand(value))
|
||||
Log.Writeln(CommonUtils.DQuotes(value) + " является системной командой Linux");
|
||||
Log.Writeln(Utils_.DQuotes(value) + " является системной командой Linux");
|
||||
}
|
||||
@Override
|
||||
public void ProcessResult() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
||||
import Common.Passes.AddObjectPass;
|
||||
public class AddEnvironmentValue extends AddObjectPass<EnvironmentValue> {
|
||||
@@ -9,6 +9,6 @@ public class AddEnvironmentValue extends AddObjectPass<EnvironmentValue> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Visual.Windows.Dialog.Text.FileNameForm;
|
||||
@@ -24,14 +24,14 @@ public class AddFile extends ChangeFilePass<DBProjectFile> {
|
||||
src = (File) args[0];
|
||||
mode = Mode.Import;
|
||||
fileName = src.getName();
|
||||
if (CommonUtils.ContainsCyrillic(fileName)) {
|
||||
Log.Writeln_("Имя файла " + CommonUtils.Brackets(fileName) + " содержит кириллицу.");
|
||||
if (Utils_.ContainsCyrillic(fileName)) {
|
||||
Log.Writeln_("Имя файла " + Utils_.Brackets(fileName) + " содержит кириллицу.");
|
||||
return false;
|
||||
}
|
||||
if (CommonUtils.ContainsForbiddenName(fileName)) {
|
||||
Log.Writeln_("Имя файла " + CommonUtils.Brackets(fileName)
|
||||
if (Utils_.ContainsForbiddenName(fileName)) {
|
||||
Log.Writeln_("Имя файла " + Utils_.Brackets(fileName)
|
||||
+ " содержит запрещенные символы." +
|
||||
"\n" + CommonUtils.printAllForbiddenCharacters());
|
||||
"\n" + Utils_.printAllForbiddenCharacters());
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
@@ -46,12 +46,12 @@ public class AddFile extends ChangeFilePass<DBProjectFile> {
|
||||
//->
|
||||
dst = Paths.get(target_dir.getAbsolutePath(), fileName).toFile();
|
||||
if (dst.exists()) {
|
||||
Log.Writeln_("Файл с именем " + CommonUtils.Brackets(fileName) + " уже существует");
|
||||
Log.Writeln_("Файл с именем " + Utils_.Brackets(fileName) + " уже существует");
|
||||
return false;
|
||||
}
|
||||
target = new DBProjectFile(dst, project);
|
||||
if (target.fileType.equals(FileType.forbidden)) {
|
||||
Log.Writeln_("Расширение " + CommonUtils.Brackets(CommonUtils.getExtension(dst)) + " недопустимо");
|
||||
Log.Writeln_("Расширение " + Utils_.Brackets(Utils_.getExtension(dst)) + " недопустимо");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
@@ -14,12 +14,12 @@ public class AddMachine extends AddObjectPass<Machine> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (super.canStart(args)) {
|
||||
if (target.type.equals(MachineType.Local) && ((GlobalDatabase)CommonUtils.db).machines.LocalMachineExists()) {
|
||||
if (target.type.equals(MachineType.Local) && ((GlobalDatabase) Utils_.db).machines.LocalMachineExists()) {
|
||||
Log.Writeln_("Локальная машина уже добавлена.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Machine.Machine;
|
||||
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||
import _VisualDVM.GlobalData.Module.Module;
|
||||
@@ -25,6 +25,6 @@ public class AddMakefile extends AddObjectPass<Makefile> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Machine.Machine;
|
||||
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||
import Common.Passes.AddObjectPass;
|
||||
@@ -15,6 +15,6 @@ public class AddRunConfiguration extends AddObjectPass<RunConfiguration> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Database.Database;
|
||||
@@ -14,7 +14,7 @@ public class AddUser extends AddObjectPass<User> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
@Override
|
||||
public Class<? extends DBObject> getOwner() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Repository.BugReport.BugReport;
|
||||
@@ -50,7 +50,7 @@ public class AppendBugReportField extends ComponentsRepositoryPass<BugReport> {
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.GetObjectCopyByPK, "", new Pair<>(BugReport.class, target.id)));
|
||||
target.SynchronizeFields((BugReport) response.object);
|
||||
oldValue = (String) BugReport.class.getField(fieldName).get(target);
|
||||
newValue = oldValue + "\n" + CommonUtils.Brackets(CommonUtils.print_date(
|
||||
newValue = oldValue + "\n" + Utils_.Brackets(Utils_.print_date(
|
||||
new Date())) + " " + Current.getAccount().name
|
||||
+ " : " + addition;
|
||||
//2. дописываем нужное поле.
|
||||
@@ -85,7 +85,7 @@ public class AppendBugReportField extends ComponentsRepositoryPass<BugReport> {
|
||||
}
|
||||
passes.get(PassCode.Email).Do(
|
||||
new EmailMessage(
|
||||
message_header + " " + CommonUtils.Brackets(Current.getAccount().name),
|
||||
message_header + " " + Utils_.Brackets(Current.getAccount().name),
|
||||
message_text,
|
||||
BugReportInterface.getRecipients(target)
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Visual.Windows.Dialog.Text.ComboTextDialog;
|
||||
@@ -32,7 +32,7 @@ public class ApplyCurrentFunction extends Pass {
|
||||
Current_.set(Current.Function, fi);
|
||||
return true;
|
||||
} else {
|
||||
Log.Writeln_("Проект не содержит процедуры с именем " + CommonUtils.Brackets(func_name));
|
||||
Log.Writeln_("Проект не содержит процедуры с именем " + Utils_.Brackets(func_name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
||||
@@ -33,12 +33,12 @@ public class ApplyProfile extends Pass<SapforProfile> {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
Vector<SapforProfileSetting> settings = new Vector<>();
|
||||
for (SapforProfileSetting sapforProfileSetting : ((GlobalDatabase)CommonUtils.db).sapforProfilesSettings.Data.values())
|
||||
for (SapforProfileSetting sapforProfileSetting : ((GlobalDatabase) Utils_.db).sapforProfilesSettings.Data.values())
|
||||
if (sapforProfileSetting.sapforprofile_id == target.id)
|
||||
settings.add(sapforProfileSetting);
|
||||
//--
|
||||
for (SapforProfileSetting setting : settings)
|
||||
if (((GlobalDatabase)CommonUtils.db).settings.containsKey(setting.name))
|
||||
if (((GlobalDatabase) Utils_.db).settings.containsKey(setting.name))
|
||||
passes.get(PassCode.UpdateSetting).Do(setting.name, setting.value);
|
||||
//--
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Machine.Machine;
|
||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||
@@ -22,7 +22,7 @@ public class ArchivesBackupPass extends ConnectionPass<File> {
|
||||
}
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
String workspace_path = CommonUtils.toU(Paths.get(user.connection.sftpChannel.getHome(), Global.properties.BackupWorkspace).toString());
|
||||
String workspace_path = Utils_.toU(Paths.get(user.connection.sftpChannel.getHome(), Global.properties.BackupWorkspace).toString());
|
||||
RemoteFile workspace = new RemoteFile(workspace_path, true);
|
||||
user.connection.MKDIR(workspace);
|
||||
RemoteFile dst = new RemoteFile(workspace.full_name, src.getName());
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.CommonConstants;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Database.Database;
|
||||
import _VisualDVM.Global;
|
||||
@@ -169,7 +169,7 @@ public class CloneDVMPackage extends AddObjectPass<DVMPackage> {
|
||||
src_jsons = new Vector<>();
|
||||
for (DVMPackage src : srcPackages) {
|
||||
if (src.state.equals(TasksPackageState.Draft)) {
|
||||
Log.Writeln_("Пакет " + CommonUtils.Brackets(src.id) + " является черновиком.");
|
||||
Log.Writeln_("Пакет " + Utils_.Brackets(src.id) + " является черновиком.");
|
||||
return false;
|
||||
}
|
||||
src_ids.add(src.id);
|
||||
@@ -209,7 +209,7 @@ public class CloneDVMPackage extends AddObjectPass<DVMPackage> {
|
||||
target.tasksCount++;
|
||||
}
|
||||
}
|
||||
return inexistingTests.isEmpty() || CommonUI.Question(inexistingTests.size() + " тестов отсутствует. Продолжить");
|
||||
return inexistingTests.isEmpty() || UI_.Question(inexistingTests.size() + " тестов отсутствует. Продолжить");
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.CommonConstants;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Database.Database;
|
||||
import _VisualDVM.Global;
|
||||
@@ -106,7 +106,7 @@ public class CloneSapforPackage extends AddObjectPass<SapforPackage> {
|
||||
Vector<SapforPackage_json> src_jsons = new Vector<>();
|
||||
for (SapforPackage src : srcPackages) {
|
||||
if (src.state.equals(TasksPackageState.Draft)) {
|
||||
Log.Writeln_("Пакет " + CommonUtils.Brackets(src.id) + " является черновиком.");
|
||||
Log.Writeln_("Пакет " + Utils_.Brackets(src.id) + " является черновиком.");
|
||||
return false;
|
||||
}
|
||||
src_ids.add(src.id);
|
||||
@@ -174,7 +174,7 @@ public class CloneSapforPackage extends AddObjectPass<SapforPackage> {
|
||||
*/
|
||||
//--
|
||||
return inexistingTests.isEmpty() && inexistingConfigurations.isEmpty() ||
|
||||
CommonUI.Question(
|
||||
UI_.Question(
|
||||
(inexistingTests.isEmpty() ? "" : (inexistingTests.size() + " тестов отсутствует;")) +
|
||||
(inexistingConfigurations.isEmpty() ? "" : (inexistingConfigurations.size() + " конфигураций отсутствует;")) +
|
||||
"Будет добавлено " + target.package_json.tasks.size() + " задач. Продолжить"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
@@ -15,7 +15,7 @@ public class CloseCurrentFile extends Pass<DBProjectFile> {
|
||||
}
|
||||
@Override
|
||||
public Icon getTabIcon() {
|
||||
return CommonUtils.getIcon("/icons/Close_18.png");
|
||||
return Utils_.getIcon("/icons/Close_18.png");
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -20,7 +20,7 @@ public class CloseCurrentProject extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
public Icon getTabIcon() {
|
||||
return CommonUtils.getIcon("/icons/Close_18.png");
|
||||
return Utils_.getIcon("/icons/Close_18.png");
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
@@ -40,7 +40,7 @@ public class CloseCurrentProject extends Pass<db_project_info> {
|
||||
Global.files_multiselection = false;
|
||||
//--
|
||||
Current.getSapfor().ResetAllAnalyses();
|
||||
Current.getSapfor().cd(CommonUtils.getHomeDirectory());
|
||||
Current.getSapfor().cd(Utils_.getHomeDirectory());
|
||||
Current_.set(Current.Project, null);
|
||||
Current_.set(Current.File, null);
|
||||
Current_.set(Current.Function, null);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||
import Common.Passes.Pass;
|
||||
@@ -16,7 +16,7 @@ public class CloseProject extends Pass<db_project_info> {
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
Current.getSapfor().ResetAllAnalyses();
|
||||
Current.getSapfor().cd(CommonUtils.getHomeDirectory());
|
||||
Current.getSapfor().cd(Utils_.getHomeDirectory());
|
||||
Current_.set(Current.Project, null);
|
||||
//-
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Global;
|
||||
import Common.Visual.Windows.Dialog.Text.ComboTextDialog;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -47,7 +47,7 @@ public class CombineFiles extends Transformation {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
result = Paths.get(target.last_version.Home.getAbsolutePath(),
|
||||
CommonUtils.isWindows() ? fd.Result : CommonUtils.toU(fd.Result)).toFile();
|
||||
Utils_.isWindows() ? fd.Result : Utils_.toU(fd.Result)).toFile();
|
||||
//-----------------------
|
||||
//получить список хедеров.
|
||||
//-----------------------
|
||||
@@ -56,13 +56,13 @@ public class CombineFiles extends Transformation {
|
||||
//-----------------------------
|
||||
result_lines.add("!-Found " + target.allIncludes.size() + " headers");
|
||||
for (String name : target.allIncludes.keySet()) {
|
||||
all_includes.add(" include " + CommonUtils.Quotes(CommonUtils.toU(name)));
|
||||
result_lines.add("! include " + CommonUtils.Quotes(CommonUtils.toU(name)));
|
||||
all_includes.add(" include " + Utils_.Quotes(Utils_.toU(name)));
|
||||
result_lines.add("! include " + Utils_.Quotes(Utils_.toU(name)));
|
||||
}
|
||||
result_lines.add("!-Collapse-" + target.files_order.size() + " files");
|
||||
int i = 1;
|
||||
for (String name : target.files_order) {
|
||||
result_lines.add("! -- " + i + ". " + CommonUtils.Brackets(name));
|
||||
result_lines.add("! -- " + i + ". " + Utils_.Brackets(name));
|
||||
++i;
|
||||
}
|
||||
result_lines.add("!--------------------");
|
||||
@@ -76,8 +76,8 @@ public class CombineFiles extends Transformation {
|
||||
String header = Utils.extractHeaderName(line);
|
||||
if (header != null) {
|
||||
if (file.relativeHeaders.containsKey(header))
|
||||
result_lines.add(" include " + CommonUtils.Quotes(
|
||||
CommonUtils.toU(
|
||||
result_lines.add(" include " + Utils_.Quotes(
|
||||
Utils_.toU(
|
||||
file.relativeHeaders.get(header).name)));
|
||||
} else
|
||||
result_lines.add(line);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -26,8 +26,8 @@ public class CompareDVMRunTasks extends Pass<Vector<DVMRunTask>> {
|
||||
//--
|
||||
target = Global.testingServer.db.dvmRunTasks.getCheckedItems();
|
||||
if (target.size() == 2) {
|
||||
if (CommonUI.Question("Назначить задачу " + CommonUtils.Brackets(target.get(0).getPK()) + " эталоном" +
|
||||
"\n(в случае отказа, будет назначена задача " + CommonUtils.Brackets(target.get(1).getPK()) + ")")) {
|
||||
if (UI_.Question("Назначить задачу " + Utils_.Brackets(target.get(0).getPK()) + " эталоном" +
|
||||
"\n(в случае отказа, будет назначена задача " + Utils_.Brackets(target.get(1).getPK()) + ")")) {
|
||||
master = target.get(0);
|
||||
slave = target.get(1);
|
||||
} else {
|
||||
@@ -38,11 +38,11 @@ public class CompareDVMRunTasks extends Pass<Vector<DVMRunTask>> {
|
||||
} else if (target.size() == 1) {
|
||||
master = target.get(0);
|
||||
slave = null;
|
||||
return CommonUI.Question("Отобразить задачу " + CommonUtils.Brackets(master.getPK()));
|
||||
return UI_.Question("Отобразить задачу " + Utils_.Brackets(master.getPK()));
|
||||
} else if ((target.size() == 0) && (Current.HasDVMRunTask())) {
|
||||
master = Current.getDVMRunTask();
|
||||
slave = null;
|
||||
return CommonUI.Question("Отобразить задачу " + CommonUtils.Brackets(master.getPK()));
|
||||
return UI_.Question("Отобразить задачу " + Utils_.Brackets(master.getPK()));
|
||||
} else {
|
||||
Log.Writeln_("Для сравнения требуется отметить две задачи.\nДля отображения требуется отметить одну задачу,или выделить её.");
|
||||
return false;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -26,8 +26,8 @@ public class CompareSapforPackages extends Pass<Vector<SapforPackage>> {
|
||||
//--
|
||||
target = Global.testingServer.db.sapforPackages.getCheckedItems();
|
||||
if (target.size() == 2) {
|
||||
if (CommonUI.Question("Назначить пакет " + CommonUtils.Brackets(target.get(0).getPK()) + " эталоном" +
|
||||
"\n(в случае отказа, будет назначен пакет " + CommonUtils.Brackets(target.get(1).getPK()) + ")")) {
|
||||
if (UI_.Question("Назначить пакет " + Utils_.Brackets(target.get(0).getPK()) + " эталоном" +
|
||||
"\n(в случае отказа, будет назначен пакет " + Utils_.Brackets(target.get(1).getPK()) + ")")) {
|
||||
master = target.get(0);
|
||||
slave = target.get(1);
|
||||
} else {
|
||||
@@ -38,11 +38,11 @@ public class CompareSapforPackages extends Pass<Vector<SapforPackage>> {
|
||||
} else if (target.size() == 1) {
|
||||
master = target.get(0);
|
||||
slave = null;
|
||||
return CommonUI.Question("Отобразить пакет " + CommonUtils.Brackets(master.getPK()));
|
||||
return UI_.Question("Отобразить пакет " + Utils_.Brackets(master.getPK()));
|
||||
} else if ((target.size() == 0) && (Current.HasSapforPackage())) {
|
||||
master = Current.getSapforPackage();
|
||||
slave = null;
|
||||
return CommonUI.Question("Отобразить пакет " + CommonUtils.Brackets(master.getPK()));
|
||||
return UI_.Question("Отобразить пакет " + Utils_.Brackets(master.getPK()));
|
||||
} else {
|
||||
Log.Writeln_("Для сравнения требуется отметить два пакета.\nДля отображения требуется отметить один пакет,или выделить его");
|
||||
return false;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -35,7 +35,7 @@ public class Compile extends Pass<db_project_info> {
|
||||
subpass = null;
|
||||
compilationTask = null;
|
||||
if (Current.getUser().state != UserState.ready_to_work)
|
||||
Log.Writeln_("Пользователь " + CommonUtils.Brackets(Current.getUser().login) +
|
||||
Log.Writeln_("Пользователь " + Utils_.Brackets(Current.getUser().login) +
|
||||
" не проинициализирован\nПерейдите на вкладку 'Настройки компиляции и запуска',\n" +
|
||||
" и выполните команду 'Инициализация пользователя'\n");
|
||||
Current.getMakefile().Validate(Log);
|
||||
@@ -54,26 +54,26 @@ public class Compile extends Pass<db_project_info> {
|
||||
//------------------------------------------
|
||||
compilationTask.CompleteSummary(target.compilation_maxtime);
|
||||
compilationTask.state = TaskState.Inactive;
|
||||
CommonUtils.db.Insert(compilationTask);
|
||||
Utils_.db.Insert(compilationTask);
|
||||
Utils.forceDeleteWithCheck(compilationTask.getLocalWorkspace());
|
||||
}
|
||||
@Override
|
||||
protected void showPreparation() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).compilationTasks.ShowUI(compilationTask.getPK());
|
||||
((GlobalDatabase) Utils_.db).compilationTasks.ShowUI(compilationTask.getPK());
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
|
||||
switch (Current.getMachine().type) {
|
||||
case Local:
|
||||
if (CommonUtils.isWindows()) {
|
||||
if (Utils_.isWindows()) {
|
||||
subpass = passes.get(PassCode.WindowsLocalCompilation);
|
||||
} else
|
||||
subpass = passes.get(PassCode.LinuxLocalCompilation);
|
||||
break;
|
||||
case Undefined:
|
||||
case MVS_cluster:
|
||||
throw new PassException("Компиляция не реализована для типа машины " + CommonUtils.DQuotes(Current.getMachine().type));
|
||||
throw new PassException("Компиляция не реализована для типа машины " + Utils_.DQuotes(Current.getMachine().type));
|
||||
default:
|
||||
subpass = passes.get(PassCode.RemoteCompilation);
|
||||
break;
|
||||
@@ -86,7 +86,7 @@ public class Compile extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).compilationTasks.ShowUI(compilationTask.getPK());
|
||||
((GlobalDatabase) Utils_.db).compilationTasks.ShowUI(compilationTask.getPK());
|
||||
UI.getDebugWindow().ShowLastCompilationTask();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Repository.Server.ServerCode;
|
||||
@@ -31,7 +31,7 @@ public class ConvertCorrectnessTests extends TestingSystemPass<File> {
|
||||
if (!Current_.Check(Log, Current.ServerSapfor)){
|
||||
return false;
|
||||
}
|
||||
return CommonUI.Warning("Загрузить полный пакет DVM тестов на корректность и производительность.");
|
||||
return UI_.Warning("Загрузить полный пакет DVM тестов на корректность и производительность.");
|
||||
}
|
||||
@Override
|
||||
protected boolean needsAnimation() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Global;
|
||||
import Common.Visual.Windows.Dialog.Dialog;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -34,7 +34,7 @@ public class CopyProject extends CurrentProjectPass {
|
||||
public void validateFields() {
|
||||
Utils.validateFileShortNewName(fields.tfName.getText(), Log);
|
||||
if (!fields.tfParent.getText().isEmpty()) {
|
||||
if (CommonUtils.ContainsCyrillic(fields.tfParent.getText()))
|
||||
if (Utils_.ContainsCyrillic(fields.tfParent.getText()))
|
||||
Log.Writeln_("Путь к целевой папке не может содержать кириллицу!");
|
||||
} else Log.Writeln_("Путь к целевой папке не может быть пустым!");
|
||||
if (Log.isEmpty()) {
|
||||
@@ -62,7 +62,7 @@ public class CopyProject extends CurrentProjectPass {
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
if (CommonUI.Question("копия текущего проекта успешно создана по адресу\n" + dstFile.getAbsolutePath() + "\nОткрыть её")) {
|
||||
if (UI_.Question("копия текущего проекта успешно создана по адресу\n" + dstFile.getAbsolutePath() + "\nОткрыть её")) {
|
||||
passes.get(PassCode.CloseCurrentProject).Do();
|
||||
passes.get(PassCode.OpenCurrentProject).Do(dstFile);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -22,11 +22,11 @@ public class CreateEmptyDirectory extends ChangeFilePass {
|
||||
//->
|
||||
dst = Paths.get(target_dir.getAbsolutePath(), fileName).toFile();
|
||||
if (dst.exists()) {
|
||||
Log.Writeln("Файл с именем " + CommonUtils.Brackets(fileName) + " уже существует");
|
||||
Log.Writeln("Файл с именем " + Utils_.Brackets(fileName) + " уже существует");
|
||||
return false;
|
||||
}
|
||||
if (fileName.equalsIgnoreCase(Constants.data)) {
|
||||
Log.Writeln(CommonUtils.Brackets(Constants.data) + " является зарезервированным именем!");
|
||||
Log.Writeln(Utils_.Brackets(Constants.data) + " является зарезервированным именем!");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Global;
|
||||
import Common.Visual.Windows.Dialog.Text.FileNameForm;
|
||||
@@ -28,7 +28,7 @@ public class CreateEmptyProject extends Pass<File> {
|
||||
project_name = ff.Result;
|
||||
target = Paths.get(Global.visualiser.getWorkspace().getAbsolutePath(), project_name).toFile();
|
||||
if (target.exists())
|
||||
Log.Writeln("Файл\n" + CommonUtils.Brackets(target.getAbsolutePath()) + "\nуже существует");
|
||||
Log.Writeln("Файл\n" + Utils_.Brackets(target.getAbsolutePath()) + "\nуже существует");
|
||||
return Log.isEmpty();
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.VDirectoryChooser;
|
||||
@@ -35,17 +35,17 @@ public class CreateGroupFromDirectory extends PublishTests {
|
||||
}
|
||||
//---------------
|
||||
if (!dir.isDirectory()) {
|
||||
Log.Writeln_(CommonUtils.Brackets(dir) + "\nне является папкой!");
|
||||
Log.Writeln_(Utils_.Brackets(dir) + "\nне является папкой!");
|
||||
return false;
|
||||
}
|
||||
if (dir.getName().equals(Constants.data)) {
|
||||
Log.Writeln_(CommonUtils.Brackets(dir) + "\nявляется служебной папкой визуализатора!");
|
||||
Log.Writeln_(Utils_.Brackets(dir) + "\nявляется служебной папкой визуализатора!");
|
||||
return false;
|
||||
}
|
||||
if (!Utils.validateProjectFile(dir, Log)) {
|
||||
Log.Writeln_("Имя папки " + CommonUtils.Brackets(dir.getName())
|
||||
Log.Writeln_("Имя папки " + Utils_.Brackets(dir.getName())
|
||||
+ " содержит запрещённые символы " +
|
||||
CommonUtils.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
Utils_.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
return false;
|
||||
}
|
||||
//--
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.VFileChooser;
|
||||
@@ -35,13 +35,13 @@ public class CreateGroupFromFiles extends PublishTests{
|
||||
Pass.passes.get(PassCode.UpdateSetting).Do(SettingName.ProjectsSearchDirectory, dir);
|
||||
//---------------
|
||||
if (dir.getName().equals(Constants.data)) {
|
||||
Log.Writeln_(CommonUtils.Brackets(dir) + "\nявляется служебной папкой визуализатора!");
|
||||
Log.Writeln_(Utils_.Brackets(dir) + "\nявляется служебной папкой визуализатора!");
|
||||
return false;
|
||||
}
|
||||
if (!Utils.validateProjectFile(dir, Log)) {
|
||||
Log.Writeln_("Имя папки " + CommonUtils.Brackets(dir.getName())
|
||||
Log.Writeln_("Имя папки " + Utils_.Brackets(dir.getName())
|
||||
+ " содержит запрещённые символы "
|
||||
+ CommonUtils.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
+ Utils_.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
return false;
|
||||
}
|
||||
if (passes.get(PassCode.PublishGroup).Do(dir.getName().toUpperCase())) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.VDirectoryChooser;
|
||||
@@ -91,19 +91,19 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
int other_project_files = 0;
|
||||
//---
|
||||
if (dir.getName().equalsIgnoreCase(Constants.data)) {
|
||||
Log.Writeln_("Папка " + CommonUtils.Brackets(dir) + " является служебной папкой визуализатора.");
|
||||
Log.Writeln_("Папка " + Utils_.Brackets(dir) + " является служебной папкой визуализатора.");
|
||||
return false;
|
||||
}
|
||||
//--
|
||||
if (CommonUtils.ContainsCyrillic(dir.getName()) || CommonUtils.ContainsForbiddenName(dir.getName())) {
|
||||
Log.Writeln_("Имя папки " + CommonUtils.Brackets(dir.getName())
|
||||
if (Utils_.ContainsCyrillic(dir.getName()) || Utils_.ContainsForbiddenName(dir.getName())) {
|
||||
Log.Writeln_("Имя папки " + Utils_.Brackets(dir.getName())
|
||||
+ " содержит запрещённые символы "
|
||||
+ CommonUtils.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
+ Utils_.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
return false;
|
||||
}
|
||||
//--
|
||||
if (files == null) {
|
||||
Log.Writeln_("Не удалось получить список файлов для папки " + CommonUtils.Brackets(dir) + ".");
|
||||
Log.Writeln_("Не удалось получить список файлов для папки " + Utils_.Brackets(dir) + ".");
|
||||
return false;
|
||||
}
|
||||
//---
|
||||
@@ -117,7 +117,7 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
!Utils.isVersion(file)) {
|
||||
subdirs++;
|
||||
}
|
||||
} else if (file.isFile() && !CommonUtils.ContainsCyrillic(file.getName()) && !CommonUtils.ContainsForbiddenName(file.getName())) {
|
||||
} else if (file.isFile() && !Utils_.ContainsCyrillic(file.getName()) && !Utils_.ContainsForbiddenName(file.getName())) {
|
||||
//если файл. все недопустимые файлы просто игнорируются.
|
||||
ProjectFile projectFile = new ProjectFile(file);
|
||||
if (isNotExcluded(projectFile)) {
|
||||
@@ -146,7 +146,7 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
}
|
||||
//--
|
||||
if (subdirs > 0) {
|
||||
Log.Writeln_("Папка " + CommonUtils.Brackets(dir) + " содержит вложенные подпапки,\n" +
|
||||
Log.Writeln_("Папка " + Utils_.Brackets(dir) + " содержит вложенные подпапки,\n" +
|
||||
"не являющиеся версиями или данными визуализатора");
|
||||
return false;
|
||||
}
|
||||
@@ -174,7 +174,7 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
}
|
||||
//-
|
||||
public File packTestCode() throws Exception {
|
||||
target.temp_project_name = CommonUtils.getDateName("test");
|
||||
target.temp_project_name = Utils_.getDateName("test");
|
||||
//-
|
||||
File tempProject = target.getTempProject();
|
||||
File tempArchive = target.getTempArchive();
|
||||
@@ -190,7 +190,7 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
//--
|
||||
ZipFolderPass zip = new ZipFolderPass();
|
||||
if (zip.Do(tempProject.getAbsolutePath(), tempArchive.getAbsolutePath())) {
|
||||
target.project_archive_bytes = CommonUtils.fileToBytes(tempArchive);
|
||||
target.project_archive_bytes = Utils_.fileToBytes(tempArchive);
|
||||
} else throw new PassException("Не удалось создать архив папки с кодом.");
|
||||
return tempProject;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.ProjectData.Files.FileType;
|
||||
@@ -36,16 +36,16 @@ public class CreateTestFromFile extends Pass<Test> {
|
||||
File file_in = (File) args[0];
|
||||
group = (Group) args[1];
|
||||
//--
|
||||
if (CommonUtils.ContainsCyrillic(file_in.getName()) || CommonUtils.ContainsForbiddenName(file_in.getName())) {
|
||||
Log.Writeln_("Имя файла " + CommonUtils.Brackets(file_in.getName())
|
||||
if (Utils_.ContainsCyrillic(file_in.getName()) || Utils_.ContainsForbiddenName(file_in.getName())) {
|
||||
Log.Writeln_("Имя файла " + Utils_.Brackets(file_in.getName())
|
||||
+ " содержит запрещённые символы " +
|
||||
CommonUtils.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
Utils_.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
return false;
|
||||
}
|
||||
//--
|
||||
projectFile = new ProjectFile(file_in);
|
||||
if (!projectFile.fileType.equals(FileType.program) || !projectFile.languageName.equals(group.language)) {
|
||||
Log.Writeln_("Не удалось распознать файл " + CommonUtils.Brackets(file_in.getName()) +
|
||||
Log.Writeln_("Не удалось распознать файл " + Utils_.Brackets(file_in.getName()) +
|
||||
" как программу на языке " + group.language.getDescription());
|
||||
return false;
|
||||
}
|
||||
@@ -54,12 +54,12 @@ public class CreateTestFromFile extends Pass<Test> {
|
||||
target.sender_address = Current.getAccount().email;
|
||||
target.sender_name = Current.getAccount().name;
|
||||
target.group_id = group.id;
|
||||
target.description = CommonUtils.getNameWithoutExtension(file_in.getName());
|
||||
target.description = Utils_.getNameWithoutExtension(file_in.getName());
|
||||
target.files = file_in.getName();
|
||||
return true;
|
||||
}
|
||||
public File packTestCode() throws Exception {
|
||||
target.temp_project_name = CommonUtils.getDateName("test");
|
||||
target.temp_project_name = Utils_.getDateName("test");
|
||||
//-
|
||||
File tempProject = target.getTempProject();
|
||||
File tempArchive = target.getTempArchive();
|
||||
@@ -73,7 +73,7 @@ public class CreateTestFromFile extends Pass<Test> {
|
||||
//--
|
||||
ZipFolderPass zip = new ZipFolderPass();
|
||||
if (zip.Do(tempProject.getAbsolutePath(), tempArchive.getAbsolutePath())) {
|
||||
target.project_archive_bytes = CommonUtils.fileToBytes(tempArchive);
|
||||
target.project_archive_bytes = Utils_.fileToBytes(tempArchive);
|
||||
} else throw new PassException("Не удалось создать архив папки с кодом.");
|
||||
return tempProject;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||
import _VisualDVM.TestingSystem.Common.Test.Test;
|
||||
@@ -46,7 +46,7 @@ public class CreateTestsGroupFromSelectedVersions extends PublishTests {
|
||||
return false;
|
||||
}
|
||||
//---
|
||||
return CommonUI.Question("В группу " + CommonUtils.Brackets(group.description) +
|
||||
return UI_.Question("В группу " + Utils_.Brackets(group.description) +
|
||||
"\nбудет добавлено " + target.size() + " тестов.\nПродолжить");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.Menus.PassMenuItem;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -50,10 +50,10 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
|
||||
return false;
|
||||
}
|
||||
for (DBProjectFile program : programsToConvert) {
|
||||
if (CommonUtils.getFileSizeMegaBytes(program.file) > 1) {
|
||||
Log.Writeln_("Размер файла кода " + CommonUtils.Brackets(program.name) + " превышает 1 Мб.");
|
||||
if (Utils_.getFileSizeMegaBytes(program.file) > 1) {
|
||||
Log.Writeln_("Размер файла кода " + Utils_.Brackets(program.name) + " превышает 1 Мб.");
|
||||
return false;
|
||||
} else programsNames.add(CommonUtils.toU(program.name));
|
||||
} else programsNames.add(Utils_.toU(program.name));
|
||||
}
|
||||
workspace = Utils.getTempFileName("convertation");
|
||||
FileUtils.forceMkdir(workspace);
|
||||
@@ -66,7 +66,7 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
|
||||
return false;
|
||||
}
|
||||
;
|
||||
if (CommonUtils.getFileSizeMegaBytes(archive) > 500) {
|
||||
if (Utils_.getFileSizeMegaBytes(archive) > 500) {
|
||||
Log.Writeln_("Размер архива проекта превышает 500 МБ");
|
||||
return false;
|
||||
}
|
||||
@@ -95,11 +95,11 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
ServerExchangeUnit_2021 unit = new ServerExchangeUnit_2021(ServerCode.DVMConvertProject);
|
||||
unit.object = CommonUtils.fileToBytes(archive);
|
||||
unit.object = Utils_.fileToBytes(archive);
|
||||
Vector<String> unit_args = new Vector<>();
|
||||
unit_args.add(target.name);
|
||||
unit_args.add(target.languageName.toString());
|
||||
unit_args.add(((GlobalDatabase)CommonUtils.db).settings.get(SettingName.DVMConvertationOptions).toString());
|
||||
unit_args.add(((GlobalDatabase) Utils_.db).settings.get(SettingName.DVMConvertationOptions).toString());
|
||||
unit_args.addAll(programsNames);
|
||||
unit.arg = String.join("\n", unit_args);
|
||||
Command(unit);
|
||||
@@ -141,7 +141,7 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
|
||||
Current.getFile().form.FocusCompilationOut();
|
||||
}
|
||||
if (!badFiles.isEmpty())
|
||||
CommonUI.Error(badFiles);
|
||||
UI_.Error(badFiles);
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
import Common.Passes.DeleteObjectPass;
|
||||
public class DeleteCompiler extends DeleteObjectPass<Compiler> {
|
||||
@@ -9,6 +9,6 @@ public class DeleteCompiler extends DeleteObjectPass<Compiler> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
||||
import Common.Passes.DeleteObjectPass;
|
||||
public class DeleteDVMParameter extends DeleteObjectPass<DVMParameter> {
|
||||
@@ -9,6 +9,6 @@ public class DeleteDVMParameter extends DeleteObjectPass<DVMParameter> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.GlobalData.Tasks.Task;
|
||||
@@ -10,21 +10,21 @@ import java.util.stream.Collectors;
|
||||
public class DeleteDebugResults extends CurrentProjectPass {
|
||||
@Override
|
||||
protected void showPreparation() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).compilationTasks.ClearUI();
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.ClearUI();
|
||||
((GlobalDatabase) Utils_.db).compilationTasks.ClearUI();
|
||||
((GlobalDatabase) Utils_.db).runTasks.ClearUI();
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
Vector<Task> toDelete = ((GlobalDatabase)CommonUtils.db).compilationTasks.Data.values().stream().filter(task -> task.belongsToProject(target)).collect(Collectors.toCollection(Vector::new));
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.Data.values().stream().filter(task -> task.belongsToProject(target)).forEach(toDelete::add);
|
||||
Vector<Task> toDelete = ((GlobalDatabase) Utils_.db).compilationTasks.Data.values().stream().filter(task -> task.belongsToProject(target)).collect(Collectors.toCollection(Vector::new));
|
||||
((GlobalDatabase) Utils_.db).runTasks.Data.values().stream().filter(task -> task.belongsToProject(target)).forEach(toDelete::add);
|
||||
for (Task task : toDelete) {
|
||||
Utils.forceDeleteWithCheck(task.getLocalWorkspace());
|
||||
CommonUtils.db.Delete(task);
|
||||
Utils_.db.Delete(task);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).compilationTasks.ShowUI();
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.ShowUI();
|
||||
((GlobalDatabase) Utils_.db).compilationTasks.ShowUI();
|
||||
((GlobalDatabase) Utils_.db).runTasks.ShowUI();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -28,7 +28,7 @@ public class DeleteDirectory extends ChangeFilePass {
|
||||
Log.Writeln("Нельзя удалять домашнюю папку проекта.");
|
||||
return false;
|
||||
}
|
||||
return (CommonUI.Warning("Удалить папку\n" + CommonUtils.Brackets(target_dir.getAbsolutePath())
|
||||
return (UI_.Warning("Удалить папку\n" + Utils_.Brackets(target_dir.getAbsolutePath())
|
||||
+ "\n и всё её содержимое."));
|
||||
} else Log.Writeln_("Папка не выделена.");
|
||||
return false;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import Common.Visual.Windows.Dialog.Dialog;
|
||||
@@ -24,7 +24,7 @@ public class DeleteDownloadedBugReports extends Pass<DirInfosDataSet> {
|
||||
target = (DirInfosDataSet) passes.get(PassCode.GetOldBugReports).target;
|
||||
if (target.Data.isEmpty()){
|
||||
Log.Writeln_("Не найдено отчетов, не использовавшихся " +
|
||||
((GlobalDatabase) CommonUtils.db).settings.get(SettingName.BugReportsAgeLimit).toInt32() +
|
||||
((GlobalDatabase) Utils_.db).settings.get(SettingName.BugReportsAgeLimit).toInt32() +
|
||||
" месяцев и более!");
|
||||
return false;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ public class DeleteDownloadedBugReports extends Pass<DirInfosDataSet> {
|
||||
}
|
||||
};
|
||||
if (dialog.ShowDialog("Найдено "+target.size()+" отчетов, не использовавшихся " +
|
||||
((GlobalDatabase)CommonUtils.db).settings.get(SettingName.BugReportsAgeLimit).toInt32()+
|
||||
((GlobalDatabase) Utils_.db).settings.get(SettingName.BugReportsAgeLimit).toInt32()+
|
||||
" месяцев и более. Удалить?")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
||||
import Common.Passes.DeleteObjectPass;
|
||||
public class DeleteEnvironmentValue extends DeleteObjectPass<EnvironmentValue> {
|
||||
@@ -9,6 +9,6 @@ public class DeleteEnvironmentValue extends DeleteObjectPass<EnvironmentValue> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -17,8 +17,8 @@ public class DeleteFile extends ChangeFilePass<DBProjectFile> {
|
||||
protected boolean canStart(Object... args) {
|
||||
resetArgs();
|
||||
return (Current_.Check(Log, Current.SelectedFile)) &&
|
||||
CommonUI.Warning("Удалить файл "
|
||||
+ CommonUtils.Brackets((target = Current.getSelectedFile()).name));
|
||||
UI_.Warning("Удалить файл "
|
||||
+ Utils_.Brackets((target = Current.getSelectedFile()).name));
|
||||
}
|
||||
@Override
|
||||
protected void performPreparation() throws Exception {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Machine.Machine;
|
||||
import Common.Passes.DeleteObjectPass;
|
||||
public class DeleteMachine extends DeleteObjectPass<Machine> {
|
||||
@@ -9,6 +9,6 @@ public class DeleteMachine extends DeleteObjectPass<Machine> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||
import Common.Passes.DeleteObjectPass;
|
||||
public class DeleteMakefile extends DeleteObjectPass<Makefile> {
|
||||
@@ -9,6 +9,6 @@ public class DeleteMakefile extends DeleteObjectPass<Makefile> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
||||
import Common.Passes.DeleteObjectPass;
|
||||
public class DeleteProfile extends DeleteObjectPass<SapforProfile> {
|
||||
@@ -9,6 +9,6 @@ public class DeleteProfile extends DeleteObjectPass<SapforProfile> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||
import Common.Passes.DeleteObjectPass;
|
||||
public class DeleteRunConfiguration extends DeleteObjectPass<RunConfiguration> {
|
||||
@@ -9,6 +9,6 @@ public class DeleteRunConfiguration extends DeleteObjectPass<RunConfiguration> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
||||
@@ -19,7 +19,7 @@ public class DeleteSelectedCompilationTasks extends Pass<Vector<CompilationTask>
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = new Vector<>();
|
||||
((GlobalDatabase)CommonUtils.db).compilationTasks.Data.values().stream().filter(task -> task.isVisible() && task.isSelected() && task.isPassive()).forEach(task -> target.add(task));
|
||||
((GlobalDatabase) Utils_.db).compilationTasks.Data.values().stream().filter(task -> task.isVisible() && task.isSelected() && task.isPassive()).forEach(task -> target.add(task));
|
||||
if (target.isEmpty()) {
|
||||
Log.Writeln_("Не отмечено ни одной задачи для удаления.");
|
||||
return false;
|
||||
@@ -27,21 +27,21 @@ public class DeleteSelectedCompilationTasks extends Pass<Vector<CompilationTask>
|
||||
}
|
||||
@Override
|
||||
protected void showPreparation() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).compilationTasks.ClearUI();
|
||||
((GlobalDatabase) Utils_.db).compilationTasks.ClearUI();
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
for (CompilationTask task : target) {
|
||||
for (RunTask runTask : task.getRunTasks().values()) {
|
||||
CommonUtils.db.Delete(runTask);
|
||||
Utils_.db.Delete(runTask);
|
||||
Utils.forceDeleteWithCheck(runTask.getLocalWorkspace());
|
||||
}
|
||||
CommonUtils.db.Delete(task);
|
||||
Utils_.db.Delete(task);
|
||||
Utils.forceDeleteWithCheck(task.getLocalWorkspace());
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).compilationTasks.ShowUI();
|
||||
((GlobalDatabase) Utils_.db).compilationTasks.ShowUI();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -18,7 +18,7 @@ public class DeleteSelectedFiles extends Pass {
|
||||
Log.Writeln_("Не отмечено ни одного файла.");
|
||||
return false;
|
||||
}
|
||||
return CommonUI.Warning("Удалить " + Current.getProject().db.files.getCheckedCount() + " файлов.");
|
||||
return UI_.Warning("Удалить " + Current.getProject().db.files.getCheckedCount() + " файлов.");
|
||||
}
|
||||
@Override
|
||||
protected void performPreparation() throws Exception {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
||||
@@ -18,7 +18,7 @@ public class DeleteSelectedRunTasks extends Pass<Vector<RunTask>> {
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = new Vector<>();
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.Data.values().stream().filter(task -> task.isVisible() && task.isSelected() && task.isPassive()).forEach(task -> target.add(task));
|
||||
((GlobalDatabase) Utils_.db).runTasks.Data.values().stream().filter(task -> task.isVisible() && task.isSelected() && task.isPassive()).forEach(task -> target.add(task));
|
||||
if (target.isEmpty()) {
|
||||
Log.Writeln_("Не отмечено ни одной задачи для удаления.");
|
||||
return false;
|
||||
@@ -26,17 +26,17 @@ public class DeleteSelectedRunTasks extends Pass<Vector<RunTask>> {
|
||||
}
|
||||
@Override
|
||||
protected void showPreparation() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.ClearUI();
|
||||
((GlobalDatabase) Utils_.db).runTasks.ClearUI();
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
for (RunTask task : target) {
|
||||
CommonUtils.db.Delete(task);
|
||||
Utils_.db.Delete(task);
|
||||
Utils.forceDeleteWithCheck(task.getLocalWorkspace());
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.ShowUI();
|
||||
((GlobalDatabase) Utils_.db).runTasks.ShowUI();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||
@@ -45,7 +45,7 @@ public class DeleteSelectedVersions extends Pass<Vector<db_project_info>> {
|
||||
}
|
||||
}
|
||||
}
|
||||
return CommonUI.Warning("Удалить " + q + " версий.");
|
||||
return UI_.Warning("Удалить " + q + " версий.");
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.User.User;
|
||||
import Common.Passes.DeleteObjectPass;
|
||||
public class DeleteUser extends DeleteObjectPass<User> {
|
||||
@@ -9,6 +9,6 @@ public class DeleteUser extends DeleteObjectPass<User> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -22,10 +22,10 @@ public class DeleteVersion extends Pass<db_project_info> {
|
||||
current = (Current.getVersion() != null) && Current.getVersion().Home.equals(target.Home);
|
||||
return true;
|
||||
} else {
|
||||
if (((target = Current.getVersion()) != null) && (!CommonUI.isActive() ||
|
||||
CommonUI.Warning("Удалить " +
|
||||
if (((target = Current.getVersion()) != null) && (!UI_.isActive() ||
|
||||
UI_.Warning("Удалить " +
|
||||
((Current.HasProject() && target.Home.equals(Current.getProject().Home)) ? "текущий проект" : "версию ")
|
||||
+ CommonUtils.Brackets(target.name)))) {
|
||||
+ Utils_.Brackets(target.name)))) {
|
||||
current = true;
|
||||
return true;
|
||||
}
|
||||
@@ -40,7 +40,7 @@ public class DeleteVersion extends Pass<db_project_info> {
|
||||
if ((Current.getProject().Home.getAbsolutePath().startsWith(target.Home.getAbsolutePath())))
|
||||
passes.get(PassCode.CloseCurrentProject).Do();
|
||||
}
|
||||
if (CommonUI.isActive()) {
|
||||
if (UI_.isActive()) {
|
||||
UI.getVersionsWindow().RemoveVersionFromComparison(target);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.Repository.BugReport.BugReport;
|
||||
@@ -22,7 +22,7 @@ public class DownloadBugReport extends ComponentsRepositoryPass<BugReport> {
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.ReceiveBugReport, target.id));
|
||||
CommonUtils.bytesToFile((byte[]) response.object, BugReportInterface.getArchiveFile(target));
|
||||
Utils_.bytesToFile((byte[]) response.object, BugReportInterface.getArchiveFile(target));
|
||||
}
|
||||
@Override
|
||||
protected boolean validate() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Repository.Component.Component;
|
||||
import _VisualDVM.Repository.Server.ServerCode;
|
||||
@@ -11,6 +11,6 @@ public class DownloadComponent extends ComponentsRepositoryPass<Component> {
|
||||
target = Current.getComponent();
|
||||
String packed = target.getComponentType()+"\n"+target.getFileName();
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.ReceiveComponent, packed));
|
||||
CommonUtils.bytesToFile((byte[]) response.object, target.getNewFile());
|
||||
Utils_.bytesToFile((byte[]) response.object, target.getNewFile());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -67,8 +67,8 @@ public class DownloadDVMPackages extends Pass<Vector<Integer>> {
|
||||
File loaded = new File(workspace, Constants.LOADED);
|
||||
Pair<byte[], byte[]> packed_package = p.getValue();
|
||||
//---
|
||||
CommonUtils.bytesToFile(packed_package.getKey(), results_zip);
|
||||
CommonUtils.bytesToFile(packed_package.getValue(), dvmPackage.getJsonFile());
|
||||
Utils_.bytesToFile(packed_package.getKey(), results_zip);
|
||||
Utils_.bytesToFile(packed_package.getValue(), dvmPackage.getJsonFile());
|
||||
passes.get(PassCode.UnzipFolderPass).Do(results_zip.getAbsolutePath(), workspace.getAbsolutePath());
|
||||
FileUtils.writeStringToFile(loaded, new Date().toString());
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -29,8 +29,8 @@ public class DownloadProject extends CurrentConnectionPass {
|
||||
if ((user.connection.getFileKBSize(src.full_name)) <= maxSize) {
|
||||
ShowMessage2("Запаковка папки проекта..");
|
||||
user.connection.Command(
|
||||
"cd " + CommonUtils.DQuotes(src.full_name),
|
||||
"zip -r " + CommonUtils.DQuotes(remote_archive.full_name) + " ./"
|
||||
"cd " + Utils_.DQuotes(src.full_name),
|
||||
"zip -r " + Utils_.DQuotes(remote_archive.full_name) + " ./"
|
||||
);
|
||||
// try {
|
||||
ShowMessage2("Загрузка проекта..");
|
||||
@@ -53,9 +53,9 @@ public class DownloadProject extends CurrentConnectionPass {
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
File project = Paths.get(Global.visualiser.getWorkspace().getAbsolutePath(),
|
||||
CommonUtils.getDateName(src.name)).toFile();
|
||||
Utils_.getDateName(src.name)).toFile();
|
||||
if (passes.get(PassCode.UnzipFolderPass).Do(local_archive.getAbsolutePath(), project.getAbsolutePath())) {
|
||||
if (CommonUI.Question("Проект " + CommonUtils.Brackets(src.name) + " успешно загружен. Открыть его"))
|
||||
if (UI_.Question("Проект " + Utils_.Brackets(src.name) + " успешно загружен. Открыть его"))
|
||||
passes.get(PassCode.OpenCurrentProject).Do(project);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -50,7 +50,7 @@ public class DownloadSapforPackage extends Pass<SapforPackage> {
|
||||
File workspace = target.getLocalWorkspace();
|
||||
Utils.forceDeleteWithCheck(workspace);
|
||||
File archive = Utils.getTempFileName(String.valueOf(target.id));
|
||||
CommonUtils.bytesToFile(packed,archive);
|
||||
Utils_.bytesToFile(packed,archive);
|
||||
passes.get(PassCode.UnzipFolderPass).Do(archive.getAbsolutePath(), Global.SapforPackagesDirectory.getAbsolutePath());
|
||||
FileUtils.writeStringToFile(loaded, new Date().toString());
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -50,8 +50,8 @@ public class DownloadTest extends TestingSystemPass<Test> {
|
||||
target.getArchive().getAbsolutePath(),
|
||||
Global.visualiser.getWorkspace().getAbsolutePath(), false
|
||||
))
|
||||
if (CommonUI.Question("Тестовый проект успешно загружен под именем\n" +
|
||||
CommonUtils.Brackets(target.getHomePath().getName()) +
|
||||
if (UI_.Question("Тестовый проект успешно загружен под именем\n" +
|
||||
Utils_.Brackets(target.getHomePath().getName()) +
|
||||
"\nОткрыть его"))
|
||||
passes.get(PassCode.OpenCurrentProject).Do(target.getHomePath());
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Passes.Pass;
|
||||
public class DropFastAccess extends Pass {
|
||||
@@ -11,7 +11,7 @@ public class DropFastAccess extends Pass {
|
||||
protected void body() throws Exception {
|
||||
for (Pass pass : Pass.FAPasses) {
|
||||
pass.stats.Drop();
|
||||
CommonUtils.db.Update(pass.stats);
|
||||
Utils_.db.Update(pass.stats);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.DBLastProject.DBLastProject;
|
||||
import Common.Passes.Pass;
|
||||
public class DropLastProjects extends Pass {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
CommonUtils.db.DeleteAll(DBLastProject.class);
|
||||
Utils_.db.DeleteAll(DBLastProject.class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Repository.EmailMessage;
|
||||
import _VisualDVM.Repository.Subscribes.Subscriber;
|
||||
@@ -24,7 +24,7 @@ public class EditAccount extends Email {
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
Subscriber res = new Subscriber(); // объект для заполнения полей.не более.
|
||||
if (f.ShowDialog("Регистрация", res)) {
|
||||
if (!CommonUtils.validateEmail(res.address, Log)) {
|
||||
if (!Utils_.validateEmail(res.address, Log)) {
|
||||
return false;
|
||||
}
|
||||
name = res.name;
|
||||
@@ -32,7 +32,7 @@ public class EditAccount extends Email {
|
||||
Vector<String> rec = new Vector<>();
|
||||
rec.add(email);
|
||||
password = String.valueOf(getRandomIntegerBetweenRange(1111, 9999));
|
||||
return super.canStart(new EmailMessage("Код подтверждения визуализатора для: " + CommonUtils.Brackets(name), password, rec));
|
||||
return super.canStart(new EmailMessage("Код подтверждения визуализатора для: " + Utils_.Brackets(name), password, rec));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -46,13 +46,13 @@ public class EditAccount extends Email {
|
||||
JOptionPane.INFORMATION_MESSAGE);
|
||||
if (attempt != null) {
|
||||
if (attempt.equals(password)) {
|
||||
CommonUI.Info("Почта успешно подтверждена!");
|
||||
UI_.Info("Почта успешно подтверждена!");
|
||||
return true;
|
||||
} else {
|
||||
CommonUI.Error("Неверный код активации.\nПовторите попытку.");
|
||||
UI_.Error("Неверный код активации.\nПовторите попытку.");
|
||||
}
|
||||
} else {
|
||||
CommonUI.Info("Подтверждение почты отменено");
|
||||
UI_.Info("Подтверждение почты отменено");
|
||||
return false;
|
||||
}
|
||||
} while (true);
|
||||
@@ -62,7 +62,7 @@ public class EditAccount extends Email {
|
||||
super.performDone();
|
||||
Current.getAccount().name = name;
|
||||
Current.getAccount().email = email;
|
||||
CommonUtils.db.Update(Current.getAccount());
|
||||
Utils_.db.Update(Current.getAccount());
|
||||
//это не регистрация. только заполнение почты в своей бд и ее подтверждение на реальность.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditCompiler extends EditObjectPass<Compiler> {
|
||||
@@ -9,6 +9,6 @@ public class EditCompiler extends EditObjectPass<Compiler> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditDVMParameter extends EditObjectPass<DVMParameter> {
|
||||
@@ -9,6 +9,6 @@ public class EditDVMParameter extends EditObjectPass<DVMParameter> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditEnvironmentValue extends EditObjectPass<EnvironmentValue> {
|
||||
@@ -9,6 +9,6 @@ public class EditEnvironmentValue extends EditObjectPass<EnvironmentValue> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Machine.Machine;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditMachine extends EditObjectPass<Machine> {
|
||||
@@ -9,6 +9,6 @@ public class EditMachine extends EditObjectPass<Machine> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditMakefile extends EditObjectPass<Makefile> {
|
||||
@@ -9,6 +9,6 @@ public class EditMakefile extends EditObjectPass<Makefile> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.Module.Module;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditModule extends EditObjectPass<Module> {
|
||||
@@ -9,6 +9,6 @@ public class EditModule extends EditObjectPass<Module> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditProfile extends EditObjectPass<SapforProfile> {
|
||||
@@ -9,6 +9,6 @@ public class EditProfile extends EditObjectPass<SapforProfile> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditRunConfiguration extends EditObjectPass<RunConfiguration> {
|
||||
@@ -9,6 +9,6 @@ public class EditRunConfiguration extends EditObjectPass<RunConfiguration> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Database.Database;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.User.User;
|
||||
import Common.Passes.EditObjectPass;
|
||||
public class EditUser extends EditObjectPass<User> {
|
||||
@@ -9,6 +9,6 @@ public class EditUser extends EditObjectPass<User> {
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return CommonUtils.db;
|
||||
return Utils_.db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
import Visual_DVM_2021.Passes.Transformation;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
@@ -13,13 +13,13 @@ public class EraseBadSymbols extends Transformation {
|
||||
String file_text = FileUtils.readFileToString(file.file);
|
||||
StringBuilder res_text = new StringBuilder();
|
||||
for (char c : file_text.toCharArray()) {
|
||||
if (CommonUtils.isEnglishLetter(c) || Character.isDigit(c) || CommonUtils.isSign(c)) {
|
||||
if (Utils_.isEnglishLetter(c) || Character.isDigit(c) || Utils_.isSign(c)) {
|
||||
res_text.append(c);
|
||||
} else if (CommonUtils.isRussianLetter(c))
|
||||
res_text.append(CommonUtils.Translit(c));
|
||||
} else if (Utils_.isRussianLetter(c))
|
||||
res_text.append(Utils_.Translit(c));
|
||||
else res_text.append(' ');
|
||||
}
|
||||
File dst = Paths.get(target.last_version.Home.getAbsolutePath(), CommonUtils.isWindows() ? file.name : file.name.replace('\\', '/')).toFile();
|
||||
File dst = Paths.get(target.last_version.Home.getAbsolutePath(), Utils_.isWindows() ? file.name : file.name.replace('\\', '/')).toFile();
|
||||
FileUtils.write(dst, res_text.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
@@ -89,7 +89,7 @@ public class ExportDVMPackageToExcel extends Pass<Vector<DVMPackage>> {
|
||||
Log.Writeln_("Папка не выбрана.");
|
||||
return false;
|
||||
}
|
||||
res = new File(dir, CommonUtils.getDateName("packages") + ".xls");
|
||||
res = new File(dir, Utils_.getDateName("packages") + ".xls");
|
||||
return true;
|
||||
}
|
||||
//---
|
||||
@@ -105,7 +105,7 @@ public class ExportDVMPackageToExcel extends Pass<Vector<DVMPackage>> {
|
||||
long milliseconds = object.ChangeDate - object.StartDate;
|
||||
total_time += milliseconds;
|
||||
//--
|
||||
lines.add("время выполнения " + CommonUtils.printSplittedDateInterval(milliseconds));
|
||||
lines.add("время выполнения " + Utils_.printSplittedDateInterval(milliseconds));
|
||||
return String.join("; ", lines);
|
||||
}
|
||||
//---
|
||||
@@ -251,7 +251,7 @@ public class ExportDVMPackageToExcel extends Pass<Vector<DVMPackage>> {
|
||||
return res;
|
||||
}
|
||||
String formatMatrix(String matrix) {
|
||||
return CommonUtils.DQuotes(matrix.trim());
|
||||
return Utils_.DQuotes(matrix.trim());
|
||||
}
|
||||
void createStyles() {
|
||||
styles = new Vector<>();
|
||||
@@ -355,7 +355,7 @@ public class ExportDVMPackageToExcel extends Pass<Vector<DVMPackage>> {
|
||||
offset.Inc();
|
||||
}
|
||||
if (target.size() > 1) {
|
||||
addInfoRow(offset.getValue(), "всего задач " + total_tasks_count + "; общее время выполнения " + CommonUtils.printSplittedDateInterval(total_time));
|
||||
addInfoRow(offset.getValue(), "всего задач " + total_tasks_count + "; общее время выполнения " + Utils_.printSplittedDateInterval(total_time));
|
||||
offset.Inc();
|
||||
}
|
||||
addHeaderRow(offset.getValue(),
|
||||
@@ -398,7 +398,7 @@ public class ExportDVMPackageToExcel extends Pass<Vector<DVMPackage>> {
|
||||
protected void performDone() throws Exception {
|
||||
super.performDone();
|
||||
if (Desktop.isDesktopSupported()) {
|
||||
if (CommonUI.Question("Таблица сформирована в файле\n" + CommonUtils.DQuotes(res.getAbsolutePath()) + ".\nОткрыть её"
|
||||
if (UI_.Question("Таблица сформирована в файле\n" + Utils_.DQuotes(res.getAbsolutePath()) + ".\nОткрыть её"
|
||||
)) {
|
||||
Desktop.getDesktop().open(res);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.GlobalData.Module.Module;
|
||||
@@ -16,7 +16,7 @@ public class GCOV extends Precompilation {
|
||||
return new File(workspace, getBinaryName());
|
||||
}
|
||||
protected String getBinaryName() {
|
||||
return CommonUtils.isWindows() ? "0.exe" : "0";
|
||||
return Utils_.isWindows() ? "0.exe" : "0";
|
||||
}
|
||||
@Override
|
||||
public boolean needsConfirmations() {
|
||||
@@ -67,7 +67,7 @@ public class GCOV extends Precompilation {
|
||||
if (getBinary().exists()) {
|
||||
ShowMessage1("Запуск для GCOV");
|
||||
name_to_kill = "0.exe";
|
||||
StartProcess(CommonUtils.isWindows()?"0.exe":"./0", target.run_maxtime);
|
||||
StartProcess(Utils_.isWindows()?"0.exe":"./0", target.run_maxtime);
|
||||
target.updateRunOut(output);
|
||||
} else {
|
||||
Log.Writeln_("Не удалось собрать проект.");
|
||||
@@ -82,10 +82,10 @@ public class GCOV extends Precompilation {
|
||||
Utils.forceDeleteWithCheck(gcov);
|
||||
name_to_kill = "gcov.exe";
|
||||
StartProcess("gcov -b " +
|
||||
CommonUtils.DQuotes(
|
||||
Utils_.DQuotes(
|
||||
Paths.get(workspace.getAbsolutePath(), uname))
|
||||
+ " -o " +
|
||||
CommonUtils.DQuotes(
|
||||
Utils_.DQuotes(
|
||||
Paths.get(workspace.getAbsolutePath(), gcno)
|
||||
), 40);
|
||||
if (gcov.exists()) {
|
||||
@@ -93,7 +93,7 @@ public class GCOV extends Precompilation {
|
||||
target.db.Update(file);
|
||||
File targetGcov = Paths.get(
|
||||
target.getGCOVDirectory().getAbsolutePath(),
|
||||
(CommonUtils.isWindows()?file.name:file.getUnixName()) + ".gcov").toFile();
|
||||
(Utils_.isWindows()?file.name:file.getUnixName()) + ".gcov").toFile();
|
||||
Files.copy(gcov.toPath(), targetGcov.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Visual_DVM_2021.Passes.CurrentProjectPass;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
@@ -28,7 +28,7 @@ public class GenerateParallelVariants extends CurrentProjectPass {
|
||||
Log.Writeln_("Количество вариантов " + amount + "\nпревышает 1600. Отображение запрещено.");
|
||||
return false;
|
||||
}
|
||||
return CommonUI.Question("Будет отображено " + amount + " вариантов. Хотите продолжить");
|
||||
return UI_.Question("Будет отображено " + amount + " вариантов. Хотите продолжить");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -30,7 +30,7 @@ public class GetOldBugReports extends Pass<DirInfosDataSet> {
|
||||
//---
|
||||
Calendar c = new GregorianCalendar();
|
||||
c.setTimeInMillis(System.currentTimeMillis());
|
||||
c.add(Calendar.MONTH, -((GlobalDatabase) CommonUtils.db).settings.get(SettingName.BugReportsAgeLimit).toInt32());
|
||||
c.add(Calendar.MONTH, -((GlobalDatabase) Utils_.db).settings.get(SettingName.BugReportsAgeLimit).toInt32());
|
||||
Date date = c.getTime();
|
||||
System.out.println(date);
|
||||
long border = date.getTime();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||
@@ -43,7 +43,7 @@ public class InitialiseUser extends Pass {
|
||||
if (passes.get(PassCode.PublishRemoteWorkspace).Do(workspace)) {
|
||||
Current.getUser().workspace = workspace.path;
|
||||
Current.getUser().state = UserState.ready_to_work;
|
||||
CommonUtils.db.Update(Current.getUser());
|
||||
Utils_.db.Update(Current.getUser());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public class InitialiseUser extends Pass {
|
||||
//рега была. просто заносим то что там пользователю
|
||||
Current.getUser().workspace = workspace.path;
|
||||
Current.getUser().state = UserState.ready_to_work;
|
||||
CommonUtils.db.Update(Current.getUser());
|
||||
Utils_.db.Update(Current.getUser());
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -61,6 +61,6 @@ public class InitialiseUser extends Pass {
|
||||
}
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).users.RefreshUI();
|
||||
((GlobalDatabase) Utils_.db).users.RefreshUI();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.GlobalData.User.User;
|
||||
@@ -16,13 +16,13 @@ public class LocalInitaliseUser extends ProcessPass<User> {
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
File workspace = new File(CommonUtils.getHomeDirectory(), "User");
|
||||
File workspace = new File(Utils_.getHomeDirectory(), "User");
|
||||
target.workspace = workspace.getAbsolutePath();
|
||||
Utils.CheckAndCleanDirectory(workspace);
|
||||
FileUtils.forceMkdir(target.getLocalProjectsDir());
|
||||
FileUtils.forceMkdir(target.getLocalModulesDir());
|
||||
//-
|
||||
if (!CommonUtils.isWindows()) {
|
||||
if (!Utils_.isWindows()) {
|
||||
File headerCode = target.getHeaderCodeFile();
|
||||
//-
|
||||
File starterCode = target.getStarterCodeFile();
|
||||
@@ -35,18 +35,18 @@ public class LocalInitaliseUser extends ProcessPass<User> {
|
||||
//-
|
||||
PerformScript(
|
||||
String.join("\n",
|
||||
"cd " + CommonUtils.DQuotes(target.getLocalModulesDir()),
|
||||
"cd " + Utils_.DQuotes(target.getLocalModulesDir()),
|
||||
"g++ starter -o starter",
|
||||
"chmod 0777 starter"
|
||||
));
|
||||
PerformScript(String.join("\n",
|
||||
"cd " + CommonUtils.DQuotes(target.getLocalModulesDir()),
|
||||
"cd " + Utils_.DQuotes(target.getLocalModulesDir()),
|
||||
"g++ launcher.cpp -o launcher",
|
||||
"chmod 0777 launcher"
|
||||
));
|
||||
}
|
||||
//-
|
||||
target.state = UserState.ready_to_work;
|
||||
CommonUtils.db.Update(target);
|
||||
Utils_.db.Update(target);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import Visual_DVM_2021.Passes.CurrentProjectPass;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
@@ -21,7 +21,7 @@ public class MakeScreenShot extends CurrentProjectPass {
|
||||
int y = display.getHeight();
|
||||
BufferedImage bufferedImage = new Robot().createScreenCapture(new Rectangle(x, y));
|
||||
//-
|
||||
String res_name = CommonUtils.getDateName("screenshot") + ".png";
|
||||
String res_name = Utils_.getDateName("screenshot") + ".png";
|
||||
outputfile = Paths.get(target.getAttachmentsDirectory().getAbsolutePath(), res_name).toFile();
|
||||
//-
|
||||
ImageIO.write(bufferedImage, "png", outputfile);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Repository.BugReport.BugReport;
|
||||
@@ -30,8 +30,8 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
|
||||
root = Paths.get(Global.visualiser.getWorkspace().getAbsolutePath(),
|
||||
target.id).toFile();
|
||||
project = Paths.get(root.getAbsolutePath(),
|
||||
CommonUtils.isWindows() ? CommonUtils.toW(target.project_version)
|
||||
: CommonUtils.toU(target.project_version)).toFile();
|
||||
Utils_.isWindows() ? Utils_.toW(target.project_version)
|
||||
: Utils_.toU(target.project_version)).toFile();
|
||||
return true;
|
||||
}else {
|
||||
Log.Writeln_("Отчёт об ошибке не содержит прикреплённого проекта!");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -59,11 +59,11 @@ public class OpenCurrentProject extends Pass<db_project_info> {
|
||||
}
|
||||
if ((dir != null) && needsOpen()) {
|
||||
if (!dir.isDirectory()) {
|
||||
Log.Writeln_(CommonUtils.Brackets(dir) + "\nне является папкой!");
|
||||
Log.Writeln_(Utils_.Brackets(dir) + "\nне является папкой!");
|
||||
return false;
|
||||
}
|
||||
if (dir.getName().equals(Constants.data)) {
|
||||
Log.Writeln_(CommonUtils.Brackets(dir) + "\nявляется служебной папкой визуализатора!");
|
||||
Log.Writeln_(Utils_.Brackets(dir) + "\nявляется служебной папкой визуализатора!");
|
||||
return false;
|
||||
}
|
||||
return Utils.validateProjectFolder(dir, Log) && Utils.containsSource(dir, true);
|
||||
@@ -83,7 +83,7 @@ public class OpenCurrentProject extends Pass<db_project_info> {
|
||||
db_project_info root = Current.getRoot();
|
||||
db_project_info project = root.find_version_r(dir);
|
||||
if (project != null) {
|
||||
CommonUtils.MainLog.Print("версия найдена в текущем корне");
|
||||
Utils_.MainLog.Print("версия найдена в текущем корне");
|
||||
//версия уже существует. и выстраивать дерево второй раз не нужно.
|
||||
//как и отображать дерево.
|
||||
target = project;
|
||||
@@ -114,13 +114,13 @@ public class OpenCurrentProject extends Pass<db_project_info> {
|
||||
SettingName.FREE_FORM, target.style.equals(LanguageStyle.free) ? "1" : "0")
|
||||
;
|
||||
DBLastProject lastProject;
|
||||
if (((GlobalDatabase)CommonUtils.db).lastProjects.containsKey(target.Home.getAbsolutePath())) {
|
||||
lastProject = ((GlobalDatabase)CommonUtils.db).lastProjects.get(target.Home.getAbsolutePath());
|
||||
if (((GlobalDatabase) Utils_.db).lastProjects.containsKey(target.Home.getAbsolutePath())) {
|
||||
lastProject = ((GlobalDatabase) Utils_.db).lastProjects.get(target.Home.getAbsolutePath());
|
||||
lastProject.RefreshOpenTime();
|
||||
CommonUtils.db.Update(lastProject);
|
||||
Utils_.db.Update(lastProject);
|
||||
} else {
|
||||
lastProject = new DBLastProject(target);
|
||||
CommonUtils.db.Insert(lastProject);
|
||||
Utils_.db.Insert(lastProject);
|
||||
}
|
||||
target.setInfo(lastProject);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.CommonConstants;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.Dialog;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
@@ -82,13 +82,13 @@ public class PickCompilerEnvironments extends Pass<String> {
|
||||
confEnv.run_configuration_id = Current.getRunConfiguration().id;
|
||||
confEnv.name = compilerEnv.name;
|
||||
confEnv.value = compilerEnv.value;
|
||||
CommonUtils.db.Insert(confEnv);
|
||||
Utils_.db.Insert(confEnv);
|
||||
} else {
|
||||
confEnv = ((GlobalDatabase)CommonUtils.db).environmentValues.getEnvByName(compilerEnv.name);
|
||||
confEnv = ((GlobalDatabase) Utils_.db).environmentValues.getEnvByName(compilerEnv.name);
|
||||
if (confEnv != null) {
|
||||
confEnv.name = compilerEnv.name;
|
||||
confEnv.value = compilerEnv.value;
|
||||
CommonUtils.db.Update(confEnv);
|
||||
Utils_.db.Update(confEnv);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -96,6 +96,6 @@ public class PickCompilerEnvironments extends Pass<String> {
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).environmentValues.ShowUI();
|
||||
((GlobalDatabase) Utils_.db).environmentValues.ShowUI();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.Dialog;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
@@ -54,7 +54,7 @@ public class PickCompilerEnvironmentsForTesting extends Pass<String> {
|
||||
Vector<String> envs = new Vector<>();
|
||||
for (CompilerEnvironment compilerEnv : compiler.environments.Data.values()) {
|
||||
if (compilerEnv.isSelected())
|
||||
envs.add(compilerEnv.name + "=" + CommonUtils.DQuotes(compilerEnv.value));
|
||||
envs.add(compilerEnv.name + "=" + Utils_.DQuotes(compilerEnv.value));
|
||||
}
|
||||
target = String.join(" ", envs);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.CommonConstants;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
@@ -50,9 +50,9 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = Current.getProject();
|
||||
if (CommonUtils.isWindows()) {
|
||||
if (Utils_.isWindows()) {
|
||||
//--
|
||||
makepath = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.LocalMakePathWindows).toString();
|
||||
makepath = ((GlobalDatabase) Utils_.db).settings.get(SettingName.LocalMakePathWindows).toString();
|
||||
if (makepath.isEmpty()) {
|
||||
Log.Writeln_("Не задан путь к make.exe.\n " +
|
||||
"Укажите его в меню глобальных настроек." +
|
||||
@@ -95,7 +95,7 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
performanceTime = 0;
|
||||
exitCode = CommonConstants.Nan;
|
||||
//------------------
|
||||
workspace = Paths.get(Global.TempDirectory.getAbsolutePath(), CommonUtils.getDateName("precompilation")).toFile();
|
||||
workspace = Paths.get(Global.TempDirectory.getAbsolutePath(), Utils_.getDateName("precompilation")).toFile();
|
||||
FileUtils.forceMkdir(workspace);
|
||||
//------------------------------>>
|
||||
fortranCompiler = new Compiler();
|
||||
@@ -169,7 +169,7 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
} else {
|
||||
//анализ начала строки.
|
||||
for (String name : target.db.files.Data.keySet()) {
|
||||
if (S.startsWith(CommonUtils.toU(name))) {
|
||||
if (S.startsWith(Utils_.toU(name))) {
|
||||
String[] data = S.split(":");
|
||||
if (data.length > 1) {
|
||||
messageFile = name;
|
||||
@@ -186,17 +186,17 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
if (CommonUtils.isWindows()) {
|
||||
if (Utils_.isWindows()) {
|
||||
name_to_kill = "make.exe";
|
||||
StartProcess(CommonUtils.DQuotes(((GlobalDatabase)CommonUtils.db).settings.get(SettingName.LocalMakePathWindows).Value) + " -j " + ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.Kernels).toString(),
|
||||
StartProcess(Utils_.DQuotes(((GlobalDatabase) Utils_.db).settings.get(SettingName.LocalMakePathWindows).Value) + " -j " + ((GlobalDatabase) Utils_.db).settings.get(SettingName.Kernels).toString(),
|
||||
target.compilation_maxtime);
|
||||
} else
|
||||
StartProcess("make -j " + ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.Kernels).toString(), target.compilation_maxtime);
|
||||
StartProcess("make -j " + ((GlobalDatabase) Utils_.db).settings.get(SettingName.Kernels).toString(), target.compilation_maxtime);
|
||||
}
|
||||
protected void StartProcess(String command, int TA) throws Exception {
|
||||
killed = false;
|
||||
output = "";
|
||||
process = Utils.startScript(workspace, workspace, CommonUtils.getDateName("start_task_script"),
|
||||
process = Utils.startScript(workspace, workspace, Utils_.getDateName("start_task_script"),
|
||||
command,
|
||||
null);
|
||||
outputLines.clear();
|
||||
@@ -225,7 +225,7 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
protected void performFinish() throws Exception {
|
||||
for (DBProjectFile file : target.db.files.Data.values()) {
|
||||
if (!file.last_assembly_name.isEmpty()) {
|
||||
String replacement = file.last_assembly_name + " " + CommonUtils.RBrackets(file.name);
|
||||
String replacement = file.last_assembly_name + " " + Utils_.RBrackets(file.name);
|
||||
output = output.replace(file.last_assembly_name, replacement);
|
||||
}
|
||||
}
|
||||
@@ -248,14 +248,14 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
public void Interrupt() throws Exception {
|
||||
if (CommonUtils.isWindows()) {
|
||||
if (Utils_.isWindows()) {
|
||||
if (!name_to_kill.isEmpty()) {
|
||||
killed = true;
|
||||
Process killer = Runtime.getRuntime().exec("taskkill /FI \"IMAGENAME eq " + name_to_kill + "\" /F /T");
|
||||
killer.waitFor();
|
||||
}
|
||||
} else {
|
||||
CommonUI.Info("Прерывание процессов под Linux не реализовано");
|
||||
UI_.Info("Прерывание процессов под Linux не реализовано");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
import _VisualDVM.ProjectData.Files.FileType;
|
||||
@@ -39,13 +39,13 @@ public class PrepareForModulesAssembly extends Transformation {
|
||||
protected void body() throws Exception {
|
||||
File total = Paths.get(target.last_version.Home.getAbsolutePath(), "total.for").toFile();
|
||||
while (total.exists()) {
|
||||
total = Paths.get(target.last_version.Home.getAbsolutePath(), CommonUtils.getDateName("total") + ".for").toFile();
|
||||
total = Paths.get(target.last_version.Home.getAbsolutePath(), Utils_.getDateName("total") + ".for").toFile();
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
//--создать
|
||||
Vector<String> total_lines = new Vector<>();
|
||||
for (String name : target.files_order) {
|
||||
total_lines.add(" include " + CommonUtils.Quotes(CommonUtils.toU(name)));
|
||||
total_lines.add(" include " + Utils_.Quotes(Utils_.toU(name)));
|
||||
}
|
||||
FileUtils.writeLines(total, total_lines, false);
|
||||
//-------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -33,7 +33,7 @@ public class PublishBugReport extends Pass<BugReport> {
|
||||
}
|
||||
if (target.executor.isEmpty()) {
|
||||
UI.getMainWindow().getCallbackWindow().FocusRecipients();
|
||||
if (!CommonUI.Question("Для отчёта об ошибке не назначен исполнитель.\nВсе равно опубликовать его"))
|
||||
if (!UI_.Question("Для отчёта об ошибке не назначен исполнитель.\nВсе равно опубликовать его"))
|
||||
return false;
|
||||
}
|
||||
if (!Current.getAccount().CheckAccessRights(target.sender_address, Log) && (BugReportInterface.CheckDraft(target, Log))) {
|
||||
@@ -56,7 +56,7 @@ public class PublishBugReport extends Pass<BugReport> {
|
||||
passes.get(PassCode.SendBugReport).Do();
|
||||
Global.componentsServer.db.Update(target);
|
||||
//3- рассылка
|
||||
EmailMessage message = new EmailMessage("Обнаружена ошибка " + CommonUtils.Brackets(target.id),
|
||||
EmailMessage message = new EmailMessage("Обнаружена ошибка " + Utils_.Brackets(target.id),
|
||||
BugReportInterface.getNewMailText(target),
|
||||
BugReportInterface.getRecipients(target));
|
||||
if (!target.project_version.isEmpty()) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -32,7 +32,7 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (!CommonUtils.isWindows()) {
|
||||
if (!Utils_.isWindows()) {
|
||||
Log.Writeln_("Публикация компонент разрешена только для Windows");
|
||||
return false;
|
||||
}
|
||||
@@ -71,9 +71,9 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
protected void ServerAction() throws Exception {
|
||||
String change_description = (f.Result == null) ? "не указаны" : f.Result;
|
||||
String change_record_header = String.join(" ",
|
||||
CommonUtils.Brackets(CommonUtils.print_date(new Date())) + ":",
|
||||
Current.getAccount().name + CommonUtils.RBrackets(Current.getAccount().email),
|
||||
"публикует версию", CommonUtils.DQuotes(target.version)
|
||||
Utils_.Brackets(Utils_.print_date(new Date())) + ":",
|
||||
Current.getAccount().name + Utils_.RBrackets(Current.getAccount().email),
|
||||
"публикует версию", Utils_.DQuotes(target.version)
|
||||
);
|
||||
String change_record = String.join("\n", change_record_header, "Изменения:",
|
||||
change_description,
|
||||
@@ -85,14 +85,14 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
target.getVersionText() + "\n" +
|
||||
change_record;
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.PublishComponent,
|
||||
packed, CommonUtils.fileToBytes(target.getFile())
|
||||
packed, Utils_.fileToBytes(target.getFile())
|
||||
));
|
||||
if (target.needs_update_minimal_version) {
|
||||
packed = target.getComponentType().toString() + "\n" +
|
||||
target.getVersionText() + "\n";
|
||||
//--
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.UpdateComponentMinimalVersion,
|
||||
packed, CommonUtils.fileToBytes(target.getFile())
|
||||
packed, Utils_.fileToBytes(target.getFile())
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -103,9 +103,9 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
if ((f.Result != null)) {
|
||||
version_mail_header = String.join(" ",
|
||||
"Опубликована версия",
|
||||
CommonUtils.DQuotes(target.version),
|
||||
Utils_.DQuotes(target.version),
|
||||
"компонента",
|
||||
CommonUtils.DQuotes(target.getComponentType().getDescription()));
|
||||
Utils_.DQuotes(target.getComponentType().getDescription()));
|
||||
EmailMessage message =
|
||||
new EmailMessage(version_mail_header,
|
||||
f.Result,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Repository.Server.ServerCode;
|
||||
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
||||
@@ -67,7 +67,7 @@ public abstract class PublishTests extends TestingSystemPass<Vector<Test>> {
|
||||
return false;
|
||||
}
|
||||
//---
|
||||
return CommonUI.Question("В группу " + CommonUtils.Brackets(group.description) +
|
||||
return UI_.Question("В группу " + Utils_.Brackets(group.description) +
|
||||
"\nбудет добавлено " + target.size() + " тестов.\nПродолжить");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||
@@ -26,7 +26,7 @@ public class RemoteInitialiseUser extends ConnectionPass<RemoteFile> {
|
||||
}
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
String workspace_name = CommonUtils.getDateName("visual_sapfor_workspace");
|
||||
String workspace_name = Utils_.getDateName("visual_sapfor_workspace");
|
||||
ShowMessage1("Создание рабочего пространства...");
|
||||
target = new RemoteFile(user.connection.sftpChannel.getHome(), workspace_name);
|
||||
user.connection.sftpChannel.mkdir(target.full_name);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||
import Visual_DVM_2021.Passes.SSH.CurrentConnectionPass;
|
||||
public class RemoteSingleCommand extends CurrentConnectionPass<String> {
|
||||
@@ -14,8 +14,8 @@ public class RemoteSingleCommand extends CurrentConnectionPass<String> {
|
||||
}
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
RemoteFile file = new RemoteFile(user.connection.sftpChannel.getHome(), CommonUtils.getDateName("out"));
|
||||
user.connection.Command(command + " 1>" + CommonUtils.DQuotes(file.full_name));
|
||||
RemoteFile file = new RemoteFile(user.connection.sftpChannel.getHome(), Utils_.getDateName("out"));
|
||||
user.connection.Command(command + " 1>" + Utils_.DQuotes(file.full_name));
|
||||
if (user.connection.Exists(file)) {
|
||||
target = user.connection.readFromFile(file);
|
||||
user.connection.sftpChannel.rm(file.full_name);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Visual.Windows.Dialog.Text.FileNameForm;
|
||||
@@ -35,7 +35,7 @@ public class RenameDirectory extends ChangeFilePass {
|
||||
fileName = ff.Result;
|
||||
dst = Paths.get(target_dir.getParentFile().getAbsolutePath(), fileName).toFile();
|
||||
if (dst.exists()) {
|
||||
Log.Writeln("Файл с именем " + CommonUtils.Brackets(fileName) + " уже существует");
|
||||
Log.Writeln("Файл с именем " + Utils_.Brackets(fileName) + " уже существует");
|
||||
return false;
|
||||
}
|
||||
if (target_dir.equals(project.Home)) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Visual.Windows.Dialog.Text.FileNameForm;
|
||||
@@ -30,12 +30,12 @@ public class RenameFile extends ChangeFilePass<DBProjectFile> {
|
||||
//->
|
||||
dst = Paths.get(target_dir.getAbsolutePath(), fileName).toFile();
|
||||
if (dst.exists()) {
|
||||
Log.Writeln_("Файл с именем " + CommonUtils.Brackets(fileName) + " уже существует");
|
||||
Log.Writeln_("Файл с именем " + Utils_.Brackets(fileName) + " уже существует");
|
||||
return false;
|
||||
}
|
||||
target = new DBProjectFile(dst, project);
|
||||
if (target.fileType == FileType.forbidden)
|
||||
Log.Writeln_("Расширение " + CommonUtils.Brackets(CommonUtils.getExtension(dst)) + " недопустимо");
|
||||
Log.Writeln_("Расширение " + Utils_.Brackets(Utils_.getExtension(dst)) + " недопустимо");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.VFileChooser;
|
||||
@@ -45,12 +45,12 @@ public class ReplaceTestsFromFiles extends TestingSystemPass<Vector<Test>> {
|
||||
Pass.passes.get(PassCode.UpdateSetting).Do(SettingName.ProjectsSearchDirectory, dir);
|
||||
//---------------
|
||||
if (dir.getName().equals(Constants.data)) {
|
||||
Log.Writeln_(CommonUtils.Brackets(dir) + "\nявляется служебной папкой визуализатора!");
|
||||
Log.Writeln_(Utils_.Brackets(dir) + "\nявляется служебной папкой визуализатора!");
|
||||
return false;
|
||||
}
|
||||
if (!Utils.validateProjectFile(dir, Log)) {
|
||||
Log.Writeln_("Имя папки " + CommonUtils.Brackets(dir.getName()) + " содержит запрещённые символы "
|
||||
+ CommonUtils.printAllForbiddenCharacters()
|
||||
Log.Writeln_("Имя папки " + Utils_.Brackets(dir.getName()) + " содержит запрещённые символы "
|
||||
+ Utils_.printAllForbiddenCharacters()
|
||||
+ ", или кириллицу.");
|
||||
return false;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ public class ReplaceTestsFromFiles extends TestingSystemPass<Vector<Test>> {
|
||||
LinkedHashMap<String, File> filesByNames = new LinkedHashMap<>(); //выделенные файлы, сортированные по именам.
|
||||
//--
|
||||
for (File file : files) {
|
||||
String name = CommonUtils.getNameWithoutExtension(file.getName()).toLowerCase();
|
||||
String name = Utils_.getNameWithoutExtension(file.getName()).toLowerCase();
|
||||
if (!filesByNames.containsKey(name)) {
|
||||
filesByNames.put(name, file);
|
||||
}
|
||||
@@ -92,7 +92,7 @@ public class ReplaceTestsFromFiles extends TestingSystemPass<Vector<Test>> {
|
||||
return false;
|
||||
}
|
||||
//--
|
||||
if (CommonUI.Question(
|
||||
if (UI_.Question(
|
||||
testForReplaceNames.size() + " тестов будет заменено,\n" +
|
||||
newTestsNames.size() + " тестов будет добавлено.\n" +
|
||||
"Продолжить"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import Visual_DVM_2021.Passes.CurrentProjectPass;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
@@ -15,7 +15,7 @@ public class ResetCurrentProject extends CurrentProjectPass {
|
||||
protected void body() throws Exception {
|
||||
target.CleanVersions();
|
||||
target.ResetDB();
|
||||
CommonUtils.db.Delete(target.getInfo());
|
||||
Utils_.db.Delete(target.getInfo());
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -29,13 +29,13 @@ public class Run extends Pass<db_project_info> {
|
||||
protected void performPreparation() throws Exception {
|
||||
runTasks = Current.getRunConfiguration().generateRunTasks(target, Current.getCompilationTask());
|
||||
for (RunTask runTask : runTasks) {
|
||||
CommonUtils.db.Insert(runTask);
|
||||
Utils_.db.Insert(runTask);
|
||||
Utils.forceDeleteWithCheck(runTask.getLocalWorkspace());
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void showPreparation() throws Exception {
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.ShowUI();
|
||||
((GlobalDatabase) Utils_.db).runTasks.ShowUI();
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
@@ -60,14 +60,14 @@ public class Run extends Pass<db_project_info> {
|
||||
protected void body() throws Exception {
|
||||
switch (Current.getMachine().type) {
|
||||
case Local:
|
||||
if (CommonUtils.isWindows()) {
|
||||
if (Utils_.isWindows()) {
|
||||
subpass = passes.get(PassCode.WindowsLocalRun);
|
||||
} else
|
||||
subpass = passes.get(PassCode.LinuxLocalRun);
|
||||
break;
|
||||
case Undefined:
|
||||
case MVS_cluster:
|
||||
throw new PassException("Запуск не реализован для типа машины " + CommonUtils.DQuotes(Current.getMachine().type));
|
||||
throw new PassException("Запуск не реализован для типа машины " + Utils_.DQuotes(Current.getMachine().type));
|
||||
/*
|
||||
case MVS_cluster:
|
||||
subpass = passes.get(PassCode_2021.MVSRun);
|
||||
@@ -84,8 +84,8 @@ public class Run extends Pass<db_project_info> {
|
||||
boolean task_completed = false;
|
||||
task.setProgress(i, runTasks.size());
|
||||
//-
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.RefreshUI();
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.SetCurrentObjectUI(task.id);
|
||||
((GlobalDatabase) Utils_.db).runTasks.RefreshUI();
|
||||
((GlobalDatabase) Utils_.db).runTasks.SetCurrentObjectUI(task.id);
|
||||
//-
|
||||
subpass.Do(task, target);
|
||||
//-
|
||||
@@ -105,7 +105,7 @@ public class Run extends Pass<db_project_info> {
|
||||
break;
|
||||
}
|
||||
//-
|
||||
((GlobalDatabase)CommonUtils.db).runTasks.RefreshUI();
|
||||
((GlobalDatabase) Utils_.db).runTasks.RefreshUI();
|
||||
UI.getDebugWindow().ShowCurrentRunTask();
|
||||
//-
|
||||
if (!task_completed) break;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.ProjectData.SapforData.Variants.ParallelVariant;
|
||||
import _VisualDVM.Repository.Component.Sapfor.TransformationPermission;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
@@ -65,7 +65,7 @@ public class SPF_CreateParallelVariant extends SapforTransformation {
|
||||
protected void performDone() throws Exception {
|
||||
Global.transformationPermission = TransformationPermission.VariantsOnly;
|
||||
target.migrateFilesSettings(target.last_version, true, true);
|
||||
if (CommonUI.isActive())
|
||||
if (UI_.isActive())
|
||||
variant.UpdateStats(sapfor.getPredictorStats(), target.last_version.name);
|
||||
}
|
||||
@Override
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.GlobalData.Settings.SettingName;
|
||||
@@ -30,8 +30,8 @@ public class SPF_GetArrayDistribution extends SPF_GetArrayDistributionOnlyAnalys
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (((GlobalDatabase)CommonUtils.db).settings.get(SettingName.MPI_PROGRAM).toBoolean()) {
|
||||
CommonUI.Info("Включена настройка SAPFOR 'MPI программа'." +
|
||||
if (((GlobalDatabase) Utils_.db).settings.get(SettingName.MPI_PROGRAM).toBoolean()) {
|
||||
UI_.Info("Включена настройка SAPFOR 'MPI программа'." +
|
||||
"\nПостроение распределения данных невозможно.");
|
||||
passes.get(PassCode.SPF_SharedMemoryParallelization).Do();
|
||||
return false;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Visual.Controls.PassControl;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Utils.Index;
|
||||
@@ -73,7 +73,7 @@ public class SPF_GetArrayDistributionOnlyAnalysis extends SapforAnalysis {
|
||||
}
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.MPI_PROGRAM).toBoolean()?
|
||||
return ((GlobalDatabase) Utils_.db).settings.get(SettingName.MPI_PROGRAM).toBoolean()?
|
||||
"Анализ кода (общая память)":"Анализ кода";
|
||||
}
|
||||
public void RefreshControls(){
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
import Visual_DVM_2021.Passes.SapforAnalysis;
|
||||
@@ -27,7 +27,7 @@ public class SPF_GetFileLineInfo extends SapforAnalysis {
|
||||
for (int i = 0; i < data_.length; ++i) {
|
||||
String s = data_[i];
|
||||
if (i % 2 == 0) {
|
||||
file_ = target.db.files.Data.get(CommonUtils.toW(s));
|
||||
file_ = target.db.files.Data.get(Utils_.toW(s));
|
||||
} else {
|
||||
String[] local = s.split("_");
|
||||
int num = Integer.parseInt(local[0]);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import Common.Passes.PassState;
|
||||
@@ -21,7 +21,7 @@ public class SPF_GetGCovInfo extends SilentSapforPass {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (CommonUI.Question("Все анализы будут сброшены.Продолжить")) {
|
||||
if (UI_.Question("Все анализы будут сброшены.Продолжить")) {
|
||||
SPF_ParseFilesWithOrder.silent = true;
|
||||
return super.canStart(args) && passes.get(PassCode.GCOV).Do()&&passes.get(PassCode.SPF_ParseFilesWithOrder).Do();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Utils.Index;
|
||||
@@ -55,7 +55,7 @@ public class SPF_GetGraphFunctions extends SapforAnalysis {
|
||||
int numOfFiles = Integer.parseInt(splited[idx.Inc()]);
|
||||
Vector<String> done_programs = new Vector<>();
|
||||
for (int i = 0; i < numOfFiles; ++i) {
|
||||
String fileName = CommonUtils.toW(splited[idx.Inc()]);
|
||||
String fileName = Utils_.toW(splited[idx.Inc()]);
|
||||
int functions_count = Integer.parseInt(splited[idx.Inc()]);
|
||||
DBProjectFile file = target.db.files.Data.get(fileName);
|
||||
if (!done_programs.contains(fileName)) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Utils.Index;
|
||||
@@ -41,7 +41,7 @@ public class SPF_GetGraphLoops extends SapforAnalysis {
|
||||
Vector<String> done_programs = new Vector<>();
|
||||
String[] splitedPackedGraph = packed.split("\\|");
|
||||
for (int i = 0; i < splitedPackedGraph.length; i += 2) {
|
||||
String name_ = CommonUtils.toW(splitedPackedGraph[i]);
|
||||
String name_ = Utils_.toW(splitedPackedGraph[i]);
|
||||
String[] packedLoopInfo = splitedPackedGraph[i + 1].split("#");
|
||||
Index idx = new Index();
|
||||
int nests_ = Integer.parseInt(packedLoopInfo[idx.Inc()]);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Utils;
|
||||
@@ -39,7 +39,7 @@ public class SPF_GetIncludeDependencies extends SapforAnalysis {
|
||||
FileInfo fileInfo = null;
|
||||
String[] data_ = packed.split("@");
|
||||
for (int i = 0; i < data_.length; ++i) {
|
||||
String s = CommonUtils.toW(data_[i]);
|
||||
String s = Utils_.toW(data_[i]);
|
||||
if (i % 2 == 0) {
|
||||
if (target.db.files.Data.containsKey(s)) {
|
||||
fileInfo = new FileInfo(s);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user