IPreferenceScope preferences = Owl.getPreferenceService().getGlobalScope();
IFolderDAO folderDAO = DynamicDAO.getDAO(IFolderDAO.class);
String selectedBookMarkSetPref = BookMarkExplorer.getSelectedBookMarkSetPref(getWindow());
long selectedFolderID = preferences.getLong(selectedBookMarkSetPref);
IFolder selectedSet = folderDAO.load(selectedFolderID);
if (selectedSet != null)
return selectedSet;
Set<IFolder> rootFolders = CoreUtils.loadRootFolders();
if (!rootFolders.isEmpty())