Package org.eclipse.mylyn.commons.notifications.core

Examples of org.eclipse.mylyn.commons.notifications.core.AbstractNotification


  @Override
  public void notify(NotificationSinkEvent event) {
    List<AbstractNotification> notifications = event.getNotifications();
    if(notifications.isEmpty()) return;
    AbstractNotification notification = notifications.get(0);
    if ((notification instanceof JUnitNotification) == false) {
      return;
    }
    currentlyNotifying = (JUnitNotification) notification;
   
View Full Code Here


    JUnitCore.addTestRunListener(new org.eclipse.jdt.junit.TestRunListener() {
      @Override
      public void sessionFinished(ITestRunSession session) {
        Result testResult = session.getTestResult(true);
        AbstractNotification notification = new JUnitNotification(QUICK_JUNIT_NOTIFICATION_EVENT_ID, testResult, session);
        NotificationsUi.getService().notify(Collections.singletonList(notification));
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.eclipse.mylyn.commons.notifications.core.AbstractNotification

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.