Package org.rssowl.core.model.events

Examples of org.rssowl.core.model.events.LabelEvent


            assertTrue(initialLabel.isIdentical(dbLabel));
          }
        }
        @Override
        public void labelUpdated(Set<LabelEvent> events) {
          LabelEvent event = events.iterator().next();
          labelUpdatedCalled[0] = true;
          Label dbLabel = (Label) event.getEntity();
          assertTrue(updatedLabel[0].isIdentical(dbLabel));
        }
      };
      NewsModel.getDefault().addLabelListener(labelListener);
      long savedLabelId = fModelDAO.saveLabel(initialLabel).getId().longValue();
View Full Code Here


      IFolder oldParent = eventTemplate == null ? null : eventTemplate.getOldParent();
      modelEvent = new FolderEvent(folder, oldParent, root);
    }
    else if (entity instanceof ILabel) {
      ILabel label = (ILabel) entity;
      modelEvent = new LabelEvent(label, root);
    }
    else if (entity instanceof ISearchCondition) {
      ISearchCondition searchCond = (ISearchCondition) entity;
      modelEvent = new SearchConditionEvent(searchCond, root);
    }
View Full Code Here

  /*
   * @see org.rssowl.core.model.dao.IModelDAO#deleteLabel(org.rssowl.core.model.reference.LabelReference)
   */
  public final void deleteLabel(LabelReference reference) throws PersistenceException {
    ILabel label = loadLabel(reference.getId());
    LabelEvent event = new LabelEvent(label, true);
    deleteEntityAndFireEvents(event);
  }
View Full Code Here

  /*
   * @see org.rssowl.core.model.dao.IModelDAO#saveLabel(org.rssowl.core.model.types.ILabel)
   */
  public ILabel saveLabel(ILabel label) throws PersistenceException {
    LabelEvent event = new LabelEvent(label, true);
    saveCommitAndFireEvents(event, false);
    return label;
  }
View Full Code Here

TOP

Related Classes of org.rssowl.core.model.events.LabelEvent

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.