no message

This commit is contained in:
2024-10-07 14:22:52 +03:00
parent 6b1576461d
commit 61fc37b574
173 changed files with 960 additions and 1526 deletions

View File

@@ -1,8 +1,8 @@
package Visual_DVM_2021.Passes.All;
import Common.Utils.CommonUtils;
import Common_old.Current;
import _VisualDVM.Global;
import Common_old.UI.UI;
import Common_old.Utils.Utils;
import ProjectData.SapforData.Functions.UI.Graph.FunctionsGraphForm;
import Visual_DVM_2021.Passes.PassException;
import Visual_DVM_2021.Passes.Pass_2021;
@@ -42,7 +42,7 @@ public class SaveGraph extends Pass_2021<File> {
protected void body() throws Exception {
target = Paths.get(Global.visualiser.getWorkspace().getAbsolutePath(), "Graph.png").toFile();
if (target.exists() && !target.delete())
throw new PassException("Не удается удалить предыдущий файл " + Utils.Brackets(target.getAbsolutePath()));
throw new PassException("Не удается удалить предыдущий файл " + CommonUtils.Brackets(target.getAbsolutePath()));
//-
mxGraph graph = graphForm.control.getGraph();
BufferedImage image = mxCellRenderer.createBufferedImage(graph,
@@ -63,6 +63,6 @@ public class SaveGraph extends Pass_2021<File> {
}
@Override
protected void showDone() throws Exception {
UI.Info("Граф успешно сохранен в файл: " + Utils.Brackets(target.getAbsolutePath()));
UI.Info("Граф успешно сохранен в файл: " + CommonUtils.Brackets(target.getAbsolutePath()));
}
}