при выдаче сообщений об ошибках интерфейсом, копирование сообщения в буфер обмена.

This commit is contained in:
2023-10-02 18:30:23 +03:00
parent 8df00d4969
commit 1934863bff
2 changed files with 4 additions and 7 deletions

View File

@@ -35,6 +35,7 @@ import Common.UI.Trees.GraphTreeCellRenderer;
import Common.UI.Trees.SelectionTreeCellRenderer;
import Common.UI.Windows.FormType;
import Common.UI.Windows.SearchReplaceForm;
import Common.Utils.Utils;
import GlobalData.Compiler.CompilersDBTable;
import GlobalData.CompilerEnvironment.UI.CompilerEnvironmentValueEditor;
import GlobalData.CompilerEnvironment.UI.CompilerEnvironmentValueRenderer;
@@ -407,10 +408,12 @@ public class UI {
return Question(getFrontWindow(), text);
}
public static void Info(String message) {
Utils.CopyToClipboard(message);
if (Current.hasUI())
JOptionPane.showMessageDialog(getFrontWindow(), message, "", 1);
}
public static void Error(String message) {
Utils.CopyToClipboard(message);
if (Current.hasUI())
JOptionPane.showMessageDialog(getFrontWindow(), message, "", 0);
}