no message
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user