no message

This commit is contained in:
2024-10-07 22:04:09 +03:00
parent 7fac84740d
commit 17c0bf7eb3
103 changed files with 560 additions and 491 deletions

View File

@@ -1,6 +1,6 @@
package Common_old.UI.Menus;
import Common.Utils.CommonUtils;
import Common_old.Current;
import _VisualDVM.Global;
import Visual_DVM_2021.Passes.PassCode_2021;
import Visual_DVM_2021.Passes.Pass_2021;
@@ -21,7 +21,7 @@ public class AttachementsMenu extends StyledPopupMenu {
try {
Desktop.getDesktop().open(Current.getProject().getAttachmentsDirectory());
} catch (Exception ex) {
Global.Log.PrintException(ex);
CommonUtils.MainLog.PrintException(ex);
}
}
});

View File

@@ -1,7 +1,6 @@
package Common_old.UI.Menus;
import Common.Utils.CommonUtils;
import Common_old.Current;
import _VisualDVM.Global;
import Common_old.UI.Editor.CaretInfo;
import Common_old.Utils.Utils;
import ProjectData.Files.DBProjectFile;
@@ -85,7 +84,7 @@ public class MainEditorMenu extends TextEditorMenu {
1
);
} catch (Exception ex) {
Global.Log.PrintException(ex);
CommonUtils.MainLog.PrintException(ex);
}
}
});
@@ -102,7 +101,7 @@ public class MainEditorMenu extends TextEditorMenu {
0
);
} catch (Exception ex) {
Global.Log.PrintException(ex);
CommonUtils.MainLog.PrintException(ex);
}
}
});
@@ -190,7 +189,7 @@ public class MainEditorMenu extends TextEditorMenu {
try {
Current.getSapfor().UpdateProjectFiles(false);
} catch (Exception ex) {
Global.Log.PrintException(ex);
CommonUtils.MainLog.PrintException(ex);
}
}
});

View File

@@ -35,7 +35,7 @@ public class ProjectFilesMenu extends GraphMenu {
try {
Desktop.getDesktop().open(Current.getProject().Home);
} catch (Exception ex) {
Global.Log.PrintException(ex);
CommonUtils.MainLog.PrintException(ex);
}
}
});

View File

@@ -1,6 +1,6 @@
package Common_old.UI.Menus;
import Common.CommonConstants;
import Common_old.Utils.Utils;
import Common.Utils.CommonUtils;
import javax.swing.*;
public class TableMenu extends StyledPopupMenu {
@@ -14,7 +14,7 @@ public class TableMenu extends StyledPopupMenu {
owner = owner_in;
mcopy = new VisualiserMenuItem("Копировать текст текущей ячейки", "/icons/Editor/Copy.png");
//если удалось нажать значит все условия выполнены
mcopy.addActionListener(e -> Utils.CopyToClipboard(target.toString()));
mcopy.addActionListener(e -> CommonUtils.CopyToClipboard(target.toString()));
add(mcopy);
}
@Override

View File

@@ -1,6 +1,6 @@
package Common_old.UI.Menus;
import Common.Utils.CommonUtils;
import Common.Visual.CommonUI;
import Common_old.Utils.Utils;
import javax.swing.*;
import java.awt.event.ActionEvent;
@@ -18,7 +18,7 @@ public class TextComboBoxMenu extends StyledPopupMenu {
new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
Utils.CopyToClipboard(box.getSelectedItem().toString());
CommonUtils.CopyToClipboard(box.getSelectedItem().toString());
}
});
add(m_copy);
@@ -27,7 +27,7 @@ public class TextComboBoxMenu extends StyledPopupMenu {
new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
CommonUI.TrySelect(box, Utils.getFromClipboard());
CommonUI.TrySelect(box, CommonUtils.getFromClipboard());
}
});
add(m_paste);

View File

@@ -1,5 +1,5 @@
package Common_old.UI.Menus;
import Common_old.Utils.Utils;
import Common.Utils.CommonUtils;
import javax.swing.*;
import javax.swing.text.JTextComponent;
@@ -52,7 +52,7 @@ public class TextEditorMenu extends StyledPopupMenu {
String[] data = selectedText.split("\n");
Vector<String> new_data = new Vector<>();
for (String line: data){
new_data.add(Utils.strikeThrough(line));
new_data.add(CommonUtils.strikeThrough(line));
}
editor.replaceSelection(String.join("\n", new_data));
}
@@ -66,7 +66,7 @@ public class TextEditorMenu extends StyledPopupMenu {
String[] data = selectedText.split("\n");
Vector<String> new_data = new Vector<>();
for (String line: data){
new_data.add(Utils.noStrikeThrough(line));
new_data.add(CommonUtils.noStrikeThrough(line));
}
editor.replaceSelection(String.join("\n", new_data));
}