Examples of NotificationImpl


Examples of org.apache.agila.impl.NotificationImpl

    protected NotificationImpl createNew(UserID userID, String msg) {

        NotificationID id = new NotificationID(++counter);

        NotificationImpl ni = new NotificationImpl(id, userID, msg);

        List l = (List) userMap.get(userID);

        if (l == null) {
View Full Code Here

Examples of org.apache.agila.impl.NotificationImpl

        if (l != null) {

            Iterator it = l.iterator();

            while(it.hasNext()) {
                NotificationImpl ni = (NotificationImpl) it.next();

                if  (ni.getStatus() == 0) {
                    flist.add(ni);
                }
            }
        }
View Full Code Here

Examples of org.apache.agila.impl.NotificationImpl

     *
     * @param id the id of the notification to be dismissed
     */
    public void dismissNotification(NotificationID id) {

        NotificationImpl ni = get(id);

        if (ni == null) {
            return;
        }

        ni.setStatus(Notification.STATUS_INACTIVE);

        save(ni);
    }
View Full Code Here

Examples of org.apache.agila.impl.NotificationImpl

     * @param message the notification message
     * @return the id of the new notification
     */
    public NotificationID notify(UserID userID, String message) {

        NotificationImpl impl = createNew(userID, message);

        return impl.getNotificationID();
    }
View Full Code Here

Examples of org.apache.agila.impl.NotificationImpl

    protected NotificationImpl createNew(UserID userID, String msg) {

        NotificationID id = new NotificationID(++counter);

        NotificationImpl ni = new NotificationImpl(id, userID, msg);

        List l = (List) userMap.get(userID);

        if (l == null) {
View Full Code Here

Examples of org.apache.agila.impl.NotificationImpl

        if (l != null) {

            Iterator it = l.iterator();

            while(it.hasNext()) {
                NotificationImpl ni = (NotificationImpl) it.next();

                if  (ni.getStatus() == 0) {
                    flist.add(ni);
                }
            }
        }
View Full Code Here

Examples of org.eclipse.emf.common.notify.impl.NotificationImpl

       
        LayerImpl layer = MapTests.createLayer(null, new TestFeatureStore(), null);
   
        RendererCreatorImpl creator = MapTests.createRendererCreator(layer.getMapInternal());
   
        NotificationImpl notificationImpl = new ENotificationImpl((InternalEObject) layer.getContextModel(), Notification.ADD,
                ProjectPackage.CONTEXT_MODEL__LAYERS, null, layer);
        creator.changed(notificationImpl);
      
        SortedSet<Layer> layers = creator.getLayers();
       
View Full Code Here

Examples of org.eclipse.emf.common.notify.impl.NotificationImpl

        Map map = layer.getMapInternal();
        LayerImpl layer2 = MapTests.createLayer(null, new TestFeatureStore(), map);
       
        RendererCreatorImpl creator = MapTests.createRendererCreator(map);
       
        NotificationImpl event = new ENotificationImpl((InternalEObject) layer.getContextModel(), Notification.ADD,
                ProjectPackage.CONTEXT_MODEL__LAYERS, null, layer);

        creator.changed(event);
        event = new ENotificationImpl((InternalEObject) layer.getContextModel(), Notification.ADD,
                ProjectPackage.CONTEXT_MODEL__LAYERS, null, layer2);
View Full Code Here

Examples of org.eclipse.emf.common.notify.impl.NotificationImpl

    public void testGetConfigurationSingleLayer() throws Throwable {
        LayerImpl layer = MapTests.createLayer(null, new RendererCreatorTestObjForSingleRenderer(), null);
       
        RendererCreatorImpl creator = MapTests.createRendererCreator(layer.getMapInternal());

        NotificationImpl notificationImpl = new ENotificationImpl((InternalEObject) layer.getContextModel(), Notification.ADD,
                ProjectPackage.CONTEXT_MODEL__LAYERS, null, layer);
        creator.changed(notificationImpl);
        RenderContext context = creator.getConfiguration().iterator().next();

        assertEquals(1, creator.getLayers().size());
View Full Code Here

Examples of org.eclipse.emf.common.notify.impl.NotificationImpl

        layer.getContextModel().eAdapters().add(listener);
       
        RendererCreatorImpl creator = MapTests.createRendererCreator(layer.getMapInternal());

        // Listener added after first layer was added so make notification by hand
        NotificationImpl notificationImpl = new ENotificationImpl((InternalEObject) layer.getContextModel(), Notification.ADD,
                ProjectPackage.CONTEXT_MODEL__LAYERS, null, layer);
        creator.changed(notificationImpl);
        RenderContext context = creator.getConfiguration().iterator().next();
       
        assertEquals(1, creator.getLayers().size());
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.