Package org.rssowl.core.persist.dao

Examples of org.rssowl.core.persist.dao.IPreferenceDAO.load()


    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


    /* 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
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.