@NotNull private ReturnResult showErrorMessage(@Nullable CommitExecutor executor) { String[] buttons = new String[]{"&Details...", commitButtonMessage(executor, panel), CommonBundle.getCancelButtonText()}; int answer = Messages.showDialog(panel.getProject(), "<html><body>GoFmt returned non-zero code on some of the files.<br/>" + "Would you like to commit anyway?</body></html>\n", "Go Fmt", null, buttons, 0, 1, UIUtil.getWarningIcon()); if (answer == Messages.OK) { return ReturnResult.CLOSE_WINDOW; } if (answer == Messages.NO) { return ReturnResult.COMMIT; } return ReturnResult.CANCEL; }
String[] options = choice == null ? new String[] {"Overwrite", "Skip"} : new String[] {"Overwrite", "Skip", "Overwrite for all", "Skip for all"}; selection = Messages.showDialog(message, title, options, 0, Messages.getQuestionIcon()); if (selection == 2 || selection == 3) { this.selection = selection;
private int promptUser(final CheckStylePlugin plugin, final int errorCount, final CommitExecutor executor) { String commitButtonText; if (executor != null) { commitButtonText = executor.getActionText(); } else { commitButtonText = checkinPanel.getCommitActionName(); } if (commitButtonText.endsWith("...")) { commitButtonText = commitButtonText.substring(0, commitButtonText.length() - 3); } final String[] buttons = new String[]{ message("handler.before.checkin.error.review"), commitButtonText, CommonBundle.getCancelButtonText()}; return Messages.showDialog(plugin.getProject(), message("handler.before.checkin.error.text", errorCount), message("handler.before.checkin.error.title"), buttons, 0, UIUtil.getWarningIcon()); }
GitCommandResult res = result.get(); if (conflict.get()) { Messages.showDialog( StackdriverDebuggerBundle.getString("clouddebug.unstashmergeconflicts"), "Merge Conflicts",