no message

This commit is contained in:
2024-10-17 20:09:01 +03:00
parent 66fa638ec4
commit d027036a99
6 changed files with 19 additions and 67 deletions

View File

@@ -43,12 +43,12 @@ public class SaveGraph extends Pass<File> {
if (target.exists() && !target.delete())
throw new PassException("Не удается удалить предыдущий файл " + Utils_.Brackets(target.getAbsolutePath()));
//-
mxGraph graph = graphForm.control.getGraph();
mxGraph graph = graphForm.getControl().getGraph();
BufferedImage image = mxCellRenderer.createBufferedImage(graph,
null, 1, Color.WHITE,
graphForm.control.isAntiAlias(),
graphForm.getControl().isAntiAlias(),
null,
graphForm.control.getCanvas());
graphForm.getControl().getCanvas());
// Creates the URL-encoded XML data
mxCodec codec = new mxCodec();
String xml = URLEncoder.encode(mxXmlUtils.getXml(codec.encode(graph.getModel())), "UTF-8");

View File

@@ -338,7 +338,7 @@ public class FileForm implements FileWindow, FormWithSplitters {
@Override
public void ShowFirstError() {
if (file.father.db.errors.ui_.getRowCount() > 0)
file.father.db.errors.ui_.control.SelectRow(0);
file.father.db.errors.ui_.getControl().SelectRow(0);
}
@Override
public void ShowCompilationOutput() {

View File

@@ -46,13 +46,13 @@ public class FunctionsForm implements FunctionsWindow {
bZoomIn.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
functionsGraphForm.control.zoomIn();
functionsGraphForm.getControl().zoomIn();
}
});
bZoomOut.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
functionsGraphForm.control.zoomOut();
functionsGraphForm.getControl().zoomOut();
}
});
bSaveGraphAsImage.addActionListener(new ActionListener() {