Package com.intellij.notification

Examples of com.intellij.notification.Notification


                notification.expire();
            }
        };

        message = MessageFormat.format(message, args);
        Notification notification = new Notification("Database Navigator", title, message, type);
        Notifications.Bus.notify(notification, project);
    }
View Full Code Here


        public void run() {
          Project currentProject = project;
          if (project == null) {
            currentProject = ProjectManager.getInstance().getDefaultProject();
          }
          new Notification("FindBugs Custom Plugin Load Error", "Error while loading custom FindBugs plugins", message.toString(), NotificationType.ERROR).notify(currentProject);
        }
      });
    }
  }
View Full Code Here

            if (lines[0].matches("Error: : unknown option `-python'.")) {
              handler.detachProcess();
              handler.removeProcessListener(this);
              context.errorHandler("Currently active Haxe toolkit doesn't supports Python target. Please install latest version of Haxe toolkit");
              Notifications.Bus.notify(
                new Notification("", "Current version of Haxe toolkit doesn't supports Python target", "You can download latest version of Haxe toolkit at <a href='http://haxe.org/download'>haxe.org/download</a> ", NotificationType.WARNING, NotificationListener.URL_OPENING_LISTENER));
              return;
            }
          }
          context.handleOutput(lines);
        }
View Full Code Here

    try {
      int exitCode = process.exitValue();
      sonarConsole.info(String.format("finished with exit code %s in %d ms", exitCode, System.currentTimeMillis() - startTime));
      if (exitCode != 0) {
        Notifications.Bus.notify(
            new Notification(
                "SonarQube", "SonarQube",
                String.format("Local analysis failed (%d)", exitCode), NotificationType.WARNING), enrichedSettings.project);
      } else {
        readIssuesFromSonarReport();
      }
View Full Code Here

            }
          }).size();

      if (newIssuesCount > 0) {
        String errorText = String.format("Found %d new SonarQube issues", newIssuesCount);
        Notifications.Bus.notify(new Notification("SonarQube", "SonarQube", errorText, NotificationType.WARNING), context.getProject());
      } else {
        Notifications.Bus.notify(new Notification("SonarQube", "SonarQube", "No new SonarQube issues", NotificationType.INFORMATION), context.getProject());
      }

    }
  }
View Full Code Here

        Notifications.Bus.register("yiicnotfound", NotificationDisplayType.BALLOON);
        if (component.getBooleanProp("useYiiMigrations")) {
            boolean phpOk = CommonHelper.phpVersionCheck();
            if (component.getProp("yiicFile").length() < 1) {
                Notifications.Bus.notify(new Notification("yiistormMigration",
                        "YiiStorm migrations",
                        "Yiic not selected ",
                        NotificationType.WARNING));
                return false;
            }
            if (component.getProp("yiicFile") != null && phpOk && Yiic.yiicIsRunnable(component.getProp("yiicFile"))) {
                return true;
            } else {
                Notifications.Bus.notify(new Notification("yiistormMigration",
                        "YiiStorm migrations",
                        phpOk ? "Yiic file not configured." : "Can't run php. Check your system configuration. ",
                        NotificationType.WARNING));
            }
        }
View Full Code Here

        if (!formattedByIntelliJ) {
            content = psiFile.getName() + " failed to format with Eclipse code formatter. " + error;
        } else {
            content = psiFile.getName() + " failed to format with IntelliJ code formatter. " + error;
        }
        Notification notification = new Notification(ProjectSettingsComponent.GROUP_DISPLAY_ID, "", content, NotificationType.ERROR);
        showNotification(notification);
    }
View Full Code Here

        Notification notification = new Notification(ProjectSettingsComponent.GROUP_DISPLAY_ID, "", content, NotificationType.ERROR);
        showNotification(notification);
    }

    void notifyFormattingWasDisabled(PsiFile psiFile) {
        Notification notification = new Notification(ProjectSettingsComponent.GROUP_DISPLAY_ID, "", psiFile.getName()
                + " - formatting was disabled for this file type", NotificationType.WARNING);
        showNotification(notification);
    }
View Full Code Here

        if (formattedByIntelliJ) {
            content = psiFile.getName() + " formatted sucessfully by IntelliJ code formatter";
        } else {
            content = psiFile.getName() + " formatted sucessfully by Eclipse code formatter";
        }
        Notification notification = new Notification(ProjectSettingsComponent.GROUP_DISPLAY_ID, "", content, NotificationType.INFORMATION);
        showNotification(notification);
    }
View Full Code Here

        });
    }

    public void notify(InvalidPathToConfigFileException e) {
        String content = "Path to Eclipse code formatter config file is invalid: " + e.getMessage();
        Notification notification = new Notification(ProjectSettingsComponent.GROUP_DISPLAY_ID, "", content, NotificationType.ERROR);
        showNotification(notification);
    }
View Full Code Here

TOP

Related Classes of com.intellij.notification.Notification

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.