com.intellij.openapi.ui.Messages.showDialog()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(209)

本文整理了Java中com.intellij.openapi.ui.Messages.showDialog()方法的一些代码示例,展示了Messages.showDialog()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages.showDialog()方法的具体详情如下:
包路径:com.intellij.openapi.ui.Messages
类名称:Messages
方法名:showDialog

Messages.showDialog介绍

暂无

代码示例

代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin

@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;
}

代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin

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;

代码示例来源:origin: jshiell/checkstyle-idea

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());
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

GitCommandResult res = result.get();
if (conflict.get()) {
 Messages.showDialog(
   StackdriverDebuggerBundle.getString("clouddebug.unstashmergeconflicts"),
   "Merge Conflicts",

相关文章