Package org.rssowl.core.persist.dao

Examples of org.rssowl.core.persist.dao.IPreferenceDAO


  public void setActivePart(IAction action, IWorkbenchPart targetPart) {
    fShell = targetPart.getSite().getShell();
  }

  private IFolder getParent() throws PersistenceException {
    IPreferenceDAO prefDAO = DynamicDAO.getDAO(IPreferenceDAO.class);
    Long selectedRootFolderID = prefDAO.load(BookMarkExplorer.PREF_SELECTED_BOOKMARK_SET).getLong();

    /* Check if available Parent is still valid */
    if (fParent != null) {
      if (hasParent(fParent, new FolderReference(selectedRootFolderID)))
        return fParent;
View Full Code Here


      }
    }
  }

  private static void doDirectImport(List<IFolderChild> elements, Map<Long, IFolderChild> mapOldIdToFolderChild) {
    IPreferenceDAO prefsDAO = Owl.getPersistenceService().getDAOService().getPreferencesDAO();
    IFolderDAO folderDAO = DynamicDAO.getDAO(IFolderDAO.class);
    List<IFolder> foldersToSave = new ArrayList<IFolder>();
    Set<IFolder> rootFolders = CoreUtils.loadRootFolders();

    /* Load the current selected Set as Location if necessary */
    IFolder selectedSet = null;
    if (!rootFolders.isEmpty()) {
      if (!InternalOwl.TESTING && PlatformUI.isWorkbenchRunning() && Controller.getDefault().isStarted()) {
        String selectedBookMarkSetPref = BookMarkExplorer.getSelectedBookMarkSetPref(OwlUI.getWindow());
        Long selectedFolderID = prefsDAO.load(selectedBookMarkSetPref).getLong();
        selectedSet = folderDAO.load(selectedFolderID);
      } else
        selectedSet = rootFolders.iterator().next();
    }

View Full Code Here

TOP

Related Classes of org.rssowl.core.persist.dao.IPreferenceDAO

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.