no message
This commit is contained in:
@@ -1014,7 +1014,7 @@ public class db_project_info extends DBObject {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public void migrateFilesSettings(db_project_info target, boolean migrate_arrays, boolean migrate_headers, boolean sapforStyle) throws Exception {
|
||||
public void migrateFilesSettings(db_project_info target, boolean migrate_arrays, boolean sapforStyle) throws Exception {
|
||||
Pair<LinkedHashMap<String, DBProjectFile>, LinkedHashMap<String, DBProjectFile>> sortedFiles = sortFiles();
|
||||
//--
|
||||
LinkedHashMap<String, DBProjectFile> programs = sortedFiles.getKey();
|
||||
@@ -1040,16 +1040,13 @@ public class db_project_info extends DBObject {
|
||||
version_file.importSettings(file, sapforStyle);
|
||||
target.db.Update(version_file);
|
||||
} else {
|
||||
if (//!file.state.equals(FileState.Excluded)&&
|
||||
(!file.fileType.equals(FileType.header) || migrate_headers)) {
|
||||
File toCopy = Paths.get(target.Home.getAbsolutePath(), file.name).toFile();
|
||||
if (!toCopy.exists())
|
||||
Files.copy(file.file.toPath(), toCopy.toPath());
|
||||
//--
|
||||
DBProjectFile new_version_file = new DBProjectFile(toCopy, target);
|
||||
new_version_file.importSettings(file, sapforStyle);
|
||||
target.db.Insert(new_version_file);
|
||||
}
|
||||
File toCopy = Paths.get(target.Home.getAbsolutePath(), file.name).toFile();
|
||||
if (!toCopy.exists())
|
||||
Files.copy(file.file.toPath(), toCopy.toPath());
|
||||
//--
|
||||
DBProjectFile new_version_file = new DBProjectFile(toCopy, target);
|
||||
new_version_file.importSettings(file, sapforStyle);
|
||||
target.db.Insert(new_version_file);
|
||||
}
|
||||
}
|
||||
//---
|
||||
@@ -1098,7 +1095,7 @@ public class db_project_info extends DBObject {
|
||||
//теперь копируем инфу по файлам.
|
||||
if (cloneData) {
|
||||
db_project_info res = new db_project_info(dst);
|
||||
migrateFilesSettings(res, false, true, false);
|
||||
migrateFilesSettings(res, true, false);
|
||||
}
|
||||
}
|
||||
public void Clone(File dst) throws Exception {
|
||||
|
||||
@@ -8,7 +8,7 @@ import Visual_DVM_2021.Passes.Pass_2021;
|
||||
public class FuncCall extends FileObjectWithMessages {
|
||||
public String funcName = ""; //не нужны дополнительные поля.имя функции это уже ключ.
|
||||
public boolean canBeInlined = false;
|
||||
public FuncInfo parent = null;
|
||||
public int parent_offset = 0;
|
||||
public FuncCall(DBProjectFile father_in, String funcName_in, int line_in) {
|
||||
super(father_in, line_in);
|
||||
funcName = funcName_in;
|
||||
@@ -35,7 +35,4 @@ public class FuncCall extends FileObjectWithMessages {
|
||||
UI.Info("Для подстановки функций требуется выполнить проход " + Utils.DQuotes(PassCode_2021.SPF_GetGraphFunctions.getDescription()));
|
||||
}
|
||||
}
|
||||
public int getInlineOffset(){
|
||||
return parent.line-line;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ public class FuncCallH extends FuncCall {
|
||||
line = funcCall_in.line;
|
||||
funcName = funcCall_in.funcName;
|
||||
canBeInlined = funcCall_in.canBeInlined;
|
||||
parent_offset = funcCall_in.parent_offset;
|
||||
}
|
||||
//особый случай. только для мейна
|
||||
//его объявление - его же и вызов.
|
||||
@@ -24,6 +25,7 @@ public class FuncCallH extends FuncCall {
|
||||
line = funcInfo.line;
|
||||
funcName = funcInfo.funcName;
|
||||
canBeInlined = true;
|
||||
parent_offset = 0;
|
||||
}
|
||||
@Override
|
||||
public String getSelectionText() {
|
||||
|
||||
Reference in New Issue
Block a user