Package org.rssowl.core.model.events

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


          List<IFolder> folderList = new ArrayList<IFolder>(1);
          folderList.add(folder);
          newParent.reorderFolders(folderList, newPosition, folderInfo.isAfter().booleanValue());
        }
      }
      FolderEvent eventTemplate = new FolderEvent(folder, oldParent, true);
      folderEvents.add(eventTemplate);
      DBHelper.putEventTemplate(eventTemplate);
    }
    return folderEvents;
  }
View Full Code Here


      Assert.isNotNull(oldParent, "All keys in foldersMap must have non-null parents"); //$NON-NLS-1$
      synchronized (folder) {
        removeFolderFromParent(folder);
        addFolder(newParent, folder);
      }
      FolderEvent eventTemplate = new FolderEvent(folder, oldParent, true);
      folderEvents.add(eventTemplate);
      DBHelper.putEventTemplate(eventTemplate);
    }
    return folderEvents;
  }
View Full Code Here

  public void deleteFolders(List<IFolder> folders) {
    fWriteLock.lock();
    try {
      for (IFolder folder : folders) {
        FolderEvent event = new FolderEvent(folder, null, true);
        DBHelper.putEventTemplate(event);
      }
      for (IFolder folder : folders)
        fDb.delete(folder);
View Full Code Here

  /*
   * @see org.rssowl.core.model.dao.IModelDAO#deleteFolder(org.rssowl.core.model.reference.FolderReference)
   */
  public final void deleteFolder(FolderReference reference) throws PersistenceException {
    IFolder folder = loadFolder(reference.getId());
    FolderEvent event = new FolderEvent(folder, null, true);
    deleteEntityAndFireEvents(event);
  }
View Full Code Here

 
  /*
   * @see org.rssowl.core.model.dao.IModelDAO#saveFolder(org.rssowl.core.model.types.IFolder)
   */
  public IFolder saveFolder(IFolder folder) throws PersistenceException {
    FolderEvent event = new FolderEvent(folder, null, true);
    saveCommitAndFireEvents(event, false);
    return folder;
  }
View Full Code Here

      IFolder oldParent = eventTemplate == null ? null : eventTemplate.getOldParent();
      modelEvent = new SearchMarkEvent(mark, oldParent, root);
    }
    else if (entity instanceof IFolder) {
      IFolder folder = (IFolder) entity;
      FolderEvent eventTemplate = (FolderEvent) template;
      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);
    }
View Full Code Here

TOP

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

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.