v++
This commit is contained in:
@@ -5,7 +5,6 @@ import Common.Utils.Utils_;
|
||||
import Common.Visual.UI;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.ProjectData.SapforData.Functions.UI.Graph.FunctionsGraphForm;
|
||||
import _VisualDVM.Repository.Component.ComponentsSet;
|
||||
import com.mxgraph.io.mxCodec;
|
||||
import com.mxgraph.util.mxCellRenderer;
|
||||
import com.mxgraph.util.mxXmlUtils;
|
||||
@@ -40,7 +39,7 @@ public class SaveGraph extends Pass<File> {
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
target = Paths.get(ComponentsSet.visualiser.getWorkspace().getAbsolutePath(), "Graph.png").toFile();
|
||||
target = Paths.get(Global.visualiser.getWorkspace().getAbsolutePath(), "Graph.png").toFile();
|
||||
if (target.exists() && !target.delete())
|
||||
throw new PassException("Не удается удалить предыдущий файл " + Utils_.Brackets(target.getAbsolutePath()));
|
||||
//-
|
||||
|
||||
Reference in New Issue
Block a user