no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package ProjectData.SapforData.Arrays;
|
||||
import Common_old.Utils.Utils;
|
||||
import Common.Utils.CommonUtils;
|
||||
import ProjectData.Files.DBProjectFile;
|
||||
import ProjectData.SapforData.FileObjectWithMessages;
|
||||
// это то что отображается в боковом графе файла. не путать с сапфоровским ProjectArray
|
||||
@@ -13,6 +13,6 @@ public class ArrayDecl extends FileObjectWithMessages {
|
||||
}
|
||||
@Override
|
||||
public String Description() {
|
||||
return array_loc.getDescription() + " массив " + Utils.Brackets(array_name);
|
||||
return array_loc.getDescription() + " массив " + CommonUtils.Brackets(array_name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package ProjectData.SapforData.Arrays;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Current;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Utils.Index;
|
||||
@@ -103,7 +104,7 @@ public class ProjectArray extends DBObject {
|
||||
int numDeclPlaces = Integer.parseInt(localSplited[2]);
|
||||
int idxPl = 3;
|
||||
for (int i = 0; i < numDeclPlaces; ++i, idxPl += 2) {
|
||||
String declFile = Utils.toW(localSplited[idxPl]);
|
||||
String declFile = CommonUtils.toW(localSplited[idxPl]);
|
||||
DBProjectFile file = Current.getProject().db.files.Data.get(declFile);
|
||||
int declLine = Integer.parseInt(localSplited[idxPl + 1]);
|
||||
//declPlaces.add(new Pair<>(declFile, declLine));
|
||||
@@ -318,7 +319,7 @@ public class ProjectArray extends DBObject {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
res += Utils.ending(i == binary.length() - 1);
|
||||
res += CommonUtils.ending(i == binary.length() - 1);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ProjectData.SapforData;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Current;
|
||||
import Common.Database.Objects.iDBObject;
|
||||
import Common_old.UI.UI;
|
||||
import Common_old.Utils.Utils;
|
||||
import ProjectData.Files.DBProjectFile;
|
||||
import com.sun.org.glassfish.gmbal.Description;
|
||||
//объект принадлежащий файлу и относящийся к его строке.
|
||||
@@ -18,7 +18,7 @@ public abstract class FileObject extends iDBObject {
|
||||
}
|
||||
@Override
|
||||
public String getSelectionText() {
|
||||
return "файл " + Utils.Brackets(file) + " строка: " + line;
|
||||
return "файл " + CommonUtils.Brackets(file) + " строка: " + line;
|
||||
}
|
||||
public DBProjectFile getFather() {
|
||||
return Current.getProject().db.files.Data.get(file);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package ProjectData.SapforData.Functions;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.UI.UI;
|
||||
import Common_old.Utils.Utils;
|
||||
import ProjectData.Files.DBProjectFile;
|
||||
import ProjectData.SapforData.FileObjectWithMessages;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
@@ -25,14 +25,14 @@ public class FuncCall extends FileObjectWithMessages {
|
||||
}
|
||||
@Override
|
||||
public String Description() {
|
||||
return "вызов " + Utils.Brackets(funcName);
|
||||
return "вызов " + CommonUtils.Brackets(funcName);
|
||||
}
|
||||
@Override
|
||||
public void Select(boolean flag) {
|
||||
if (Pass_2021.passes.get(PassCode_2021.SPF_GetGraphFunctions).isDone()) {
|
||||
super.Select(flag);
|
||||
} else {
|
||||
UI.Info("Для подстановки функций требуется выполнить проход " + Utils.DQuotes(PassCode_2021.SPF_GetGraphFunctions.getDescription()));
|
||||
UI.Info("Для подстановки функций требуется выполнить проход " + CommonUtils.DQuotes(PassCode_2021.SPF_GetGraphFunctions.getDescription()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package ProjectData.SapforData.Functions;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.UI.UI;
|
||||
import Common_old.Utils.Utils;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FuncCallH extends FuncCall {
|
||||
}
|
||||
@Override
|
||||
public String getSelectionText() {
|
||||
return "вызов " + Utils.Brackets(funcName) + " в строке " + line;
|
||||
return "вызов " + CommonUtils.Brackets(funcName) + " в строке " + line;
|
||||
}
|
||||
@Override
|
||||
public void SelectAllChildren(boolean select) {
|
||||
@@ -41,7 +41,7 @@ public class FuncCallH extends FuncCall {
|
||||
if (Pass_2021.passes.get(PassCode_2021.SPF_GetGraphFunctions).isDone()) {
|
||||
super.Select(flag);
|
||||
} else {
|
||||
UI.Info("Для подстановки функций требуется выполнить проход " + Utils.DQuotes(PassCode_2021.SPF_GetGraphFunctions.getDescription()));
|
||||
UI.Info("Для подстановки функций требуется выполнить проход " + CommonUtils.DQuotes(PassCode_2021.SPF_GetGraphFunctions.getDescription()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package ProjectData.SapforData.Functions;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Index;
|
||||
import Common_old.Utils.Utils;
|
||||
import ProjectData.Files.DBProjectFile;
|
||||
@@ -52,7 +53,7 @@ public class FuncInfo extends FileObjectWithMessages {
|
||||
//--
|
||||
@Override
|
||||
public String getSelectionText() {
|
||||
return type.getDescription() + " " + Utils.Brackets(funcName);
|
||||
return type.getDescription() + " " + CommonUtils.Brackets(funcName);
|
||||
}
|
||||
public boolean isMain() {
|
||||
return type.equals(FunctionType.Main);
|
||||
@@ -77,6 +78,6 @@ public class FuncInfo extends FileObjectWithMessages {
|
||||
}
|
||||
@Override
|
||||
public String Description() {
|
||||
return type.getDescription() + " " + Utils.Brackets(funcName);
|
||||
return type.getDescription() + " " + CommonUtils.Brackets(funcName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package ProjectData.SapforData.Functions.UI.Graph;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Current;
|
||||
import Common_old.UI.Menus.VisualiserMenuItem;
|
||||
import Common_old.UI.Menus.StyledPopupMenu;
|
||||
import Common_old.UI.UI;
|
||||
import Common_old.Utils.Utils;
|
||||
import Visual_DVM_2021.Passes.All.SPF_GetGraphFunctionPositions;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
@@ -32,7 +32,7 @@ public class FunctionsGraphMenu extends StyledPopupMenu {
|
||||
@Override
|
||||
public void CheckElementsVisibility() {
|
||||
if (Current.HasSelectedFunction()) {
|
||||
changeCurrent.setText("Назначить процедуру " + Utils.DQuotes(Current.getSelectionFunction().funcName) + " текущей.");
|
||||
changeCurrent.setText("Назначить процедуру " + CommonUtils.DQuotes(Current.getSelectionFunction().funcName) + " текущей.");
|
||||
changeCurrent.setEnabled(true);
|
||||
} else {
|
||||
changeCurrent.setText("Невозможно назначить текущую процедуру: узел графа не выбран");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ProjectData.SapforData.Functions.UI.Graph;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Current;
|
||||
import Common_old.UI.UI;
|
||||
import Common_old.Utils.Utils;
|
||||
import ProjectData.SapforData.Functions.FuncCoordinates;
|
||||
import ProjectData.SapforData.Functions.FuncInfo;
|
||||
import ProjectData.SapforData.Functions.FunctionType;
|
||||
@@ -243,7 +243,7 @@ public class FunctionsGraphUI extends mxGraph {
|
||||
break;
|
||||
case Standard:
|
||||
case NotFound:
|
||||
UI.Info("процедура " + Utils.Brackets(func_name) + " " + fi.type.getDescription());
|
||||
UI.Info("процедура " + CommonUtils.Brackets(func_name) + " " + fi.type.getDescription());
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package ProjectData.SapforData.Functions.UI.Graph;
|
||||
import Common_old.Utils.Utils;
|
||||
import Common.Utils.CommonUtils;
|
||||
import com.mxgraph.swing.mxGraphComponent;
|
||||
import javafx.util.Pair;
|
||||
|
||||
@@ -44,7 +44,7 @@ public class GraphInfo {
|
||||
Vector<String> edges = new Vector<>();
|
||||
for (String name : vertexMap.keySet()) {
|
||||
for (String neighbor : vertexMap.get(name)) {
|
||||
edges.add(Utils.Brackets(name + "," + neighbor));
|
||||
edges.add(CommonUtils.Brackets(name + "," + neighbor));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package ProjectData.SapforData.Includes;
|
||||
import Common_old.Utils.Utils;
|
||||
import Common.Utils.CommonUtils;
|
||||
import ProjectData.SapforData.FileObject;
|
||||
public class DependencyInfo extends FileObject {
|
||||
public DependencyInfo(String file_in) {
|
||||
@@ -7,7 +7,7 @@ public class DependencyInfo extends FileObject {
|
||||
}
|
||||
@Override
|
||||
public String getSelectionText() {
|
||||
return "включение: " + Utils.Brackets(file);
|
||||
return "включение: " + CommonUtils.Brackets(file);
|
||||
}
|
||||
//мб на будущее расширить, в какой строке находится команда икнлудить файл.
|
||||
// но это уже к Сапфору
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ProjectData.SapforData.Regions;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Current;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Utils.Index;
|
||||
import Common_old.Utils.Utils;
|
||||
import ProjectData.Files.DBProjectFile;
|
||||
import ProjectData.SapforData.Arrays.Distribution.AlignRule;
|
||||
import ProjectData.SapforData.Arrays.Distribution.DataDirective;
|
||||
@@ -39,7 +39,7 @@ public class ParallelRegion extends DBObject {
|
||||
//распаковка Lines -----------------------------------------------
|
||||
//---------------------------------------------------------------
|
||||
for (int i = 0; i < lines_size; ++i) {
|
||||
String line_file = Utils.toW(localSplited[1]);
|
||||
String line_file = CommonUtils.toW(localSplited[1]);
|
||||
int line_list_size = Integer.parseInt(localSplited[2]);
|
||||
Vector<Pair<Integer, Integer>> current_lines = new Vector<>(line_list_size);
|
||||
for (int k = 0; k < line_list_size; ++k) {
|
||||
|
||||
Reference in New Issue
Block a user