Package com.intellij.notification

Examples of com.intellij.notification.Notification


                '}';
    }


    private Notification createWarningNotification( String message ) {
        return new Notification(
                "DynamicReturnTypePlugin",
                "Script file error",
                message,
                NotificationType.WARNING
        );
View Full Code Here


    catch (ExecutionException e) {
      ourInProgress.set(false);

      // may be better show it in Messages tool window console?
      Notifications.Bus.notify(
        new Notification(GROUP_DISPLAY_ID, actionTitle, DartBundle.message("dart.pub.exception", e.getMessage()), NotificationType.ERROR));
    }
  }
View Full Code Here

  private static void showErrorMessage(@NotNull String message) {
    String fullMessage = "Error creating PhoneGap/Cordova App. " + message;
    String title = "Create PhoneGap/Cordova Project";
    Notifications.Bus.notify(
      new Notification("PhoneGap/Cordova Generator", title, fullMessage, NotificationType.ERROR)
    );
  }
View Full Code Here

      /* ios-sim not run */
      String groupeDisplayId = "PhoneGap notification";
      String notificationTitle = "PhoneGap Plugin";
      String notificationMessage = "ios-sim not detected";
      NotificationType notificationType = NotificationType.ERROR;
      Notification notification = new Notification(groupeDisplayId, notificationTitle, notificationMessage, notificationType);

      Notifications.Bus.notify(notification);
    }

  }
View Full Code Here

    private static void noPhoneGap() {
        String groupDisplayId = "PhoneGap notification";
        String notificationTitle = "PhoneGap Plugin";
        String notificationMessage = "PhoneGap/Cordova has incorrect executable path";
        NotificationType notificationType = NotificationType.ERROR;
        Notification notification = new Notification(groupDisplayId, notificationTitle, notificationMessage, notificationType);

        Notifications.Bus.notify(notification);
    }
View Full Code Here

      // Output Notify
      String groupeDisplayId = "PhoneGap notification";
      String notificationTitle = "PhoneGap Plugin";
      String notificationMessage = "NodeJS not detected";
      NotificationType notificationType = NotificationType.ERROR;
      Notification notification = new Notification(groupeDisplayId, notificationTitle, notificationMessage, notificationType);

      Notifications.Bus.notify(notification);
    }
  }
View Full Code Here

      // Output Notify
      String groupeDisplayId = "PhoneGap notification";
      String notificationTitle = "PhoneGap Plugin";
      String notificationMessage = "AndroidSDK not detected";
      NotificationType notificationType = NotificationType.ERROR;
      Notification notification = new Notification(groupeDisplayId, notificationTitle, notificationMessage, notificationType);

      Notifications.Bus.notify(notification);
    } finally { }
  }
View Full Code Here

              }
            }
          };

          Notifications.Bus.notify(
              new Notification("Struts 2", "Struts 2 Setup",
                               "Struts 2 Facet has been created, please check <a href=\"more\">created fileset</a>",
                               NotificationType.INFORMATION,
                               showFacetSettingsListener),
              module.getProject());
View Full Code Here

    @Override
    public void cannotBind(Exception e, int port) {
      String groupDisplayId = "IDETalk XmlRpc Server";
      Notifications.Bus.register(groupDisplayId, NotificationDisplayType.STICKY_BALLOON);
      new Notification(groupDisplayId, "IDETalk XmlRpc server on custom port " + port + " disabled",
                       "Cannot start IDETalk XmlRpc server on custom port " + port + "." +
                       "Please ensure that port is free (or check your firewall settings) and restart " + ApplicationNamesInfo.getInstance().getFullProductName(),
                       NotificationType.ERROR).notify(null);
    }
View Full Code Here

    assert module != null : element;

    BundleManifest manifest = BundleManager.getInstance(element.getProject()).getManifestByObject(module);
    if (manifest == null) {
      String message = OsmorcBundle.message("inspection.fix.no.manifest");
      Notifications.Bus.notify(new Notification("osmorc", getFamilyName(), message, NotificationType.WARNING));
      return null;
    }

    ManifestFile manifestFile = manifest.getManifestFile();
    if (!CommonRefactoringUtil.checkReadOnlyStatus(manifestFile)) {
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.