Package org.eclipse.osgi.framework.eventmgr.EventManager

Examples of org.eclipse.osgi.framework.eventmgr.EventManager.EventThread.postEvent()


    }
    EventThread eventThread = manager.getEventThread();
    synchronized (eventThread) { /* synchronize on the EventThread to ensure no interleaving of posting to the event thread */
      for (Iterator iter = queue.entrySet().iterator(); iter.hasNext();) { /* iterate over the list of listener lists */
        Map.Entry entry = (Map.Entry) iter.next();
        eventThread.postEvent((Set) entry.getKey(), (EventDispatcher) entry.getValue(), eventAction, eventObject);
      }
    }
  }

  /**
 
View Full Code Here


    EventThread eventThread = manager.getEventThread();
    synchronized (eventThread) { /* synchronize on the EventThread to ensure no interleaving of posting to the event thread */
      int size = queue.size();
      for (int i = 0; i < size; i++) { /* iterate over the list of listener lists */
        ListElement list = (ListElement)queue.get(i);
        eventThread.postEvent((ListElement[]) list.primary, (EventDispatcher) list.companion, eventAction, eventObject);
      }
    }
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.