mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Messages: fix copy-paste error -> warning
This commit is contained in:
@@ -432,7 +432,7 @@ public class Messages {
|
||||
|
||||
public static void showWarningDialog(Project project, String message, String title) {
|
||||
if (canShowMacSheetPanel()) {
|
||||
MacMessages.getInstance().showErrorDialog(CommonBundle.getErrorTitle(), message, OK_BUTTON, WindowManager.getInstance().suggestParentWindow(project));
|
||||
MacMessages.getInstance().showErrorDialog(CommonBundle.getWarningTitle(), message, OK_BUTTON, WindowManager.getInstance().suggestParentWindow(project));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -441,7 +441,7 @@ public class Messages {
|
||||
|
||||
public static void showWarningDialog(Component component, String message, String title) {
|
||||
if (canShowMacSheetPanel()) {
|
||||
MacMessages.getInstance().showErrorDialog(CommonBundle.getErrorTitle(), message, OK_BUTTON, SwingUtilities.getWindowAncestor(component));
|
||||
MacMessages.getInstance().showErrorDialog(CommonBundle.getWarningTitle(), message, OK_BUTTON, SwingUtilities.getWindowAncestor(component));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -456,7 +456,7 @@ public class Messages {
|
||||
*/
|
||||
public static void showWarningDialog(String message, String title) {
|
||||
if (canShowMacSheetPanel()) {
|
||||
MacMessages.getInstance().showErrorDialog(CommonBundle.getErrorTitle(), message, OK_BUTTON, null);
|
||||
MacMessages.getInstance().showErrorDialog(CommonBundle.getWarningTitle(), message, OK_BUTTON, null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user