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