fFaviconsEnabled = !fGlobalPreferences.getBoolean(DefaultPreferences.BE_DISABLE_FAVICONS);
fFilterType = BookMarkFilter.Type.values()[fGlobalPreferences.getInteger(DefaultPreferences.BE_FILTER_TYPE)];
fGroupingType = BookMarkGrouping.Type.values()[fGlobalPreferences.getInteger(DefaultPreferences.BE_GROUP_TYPE)];
String selectedBookMarkSetPref = getSelectedBookMarkSetPref(fViewSite.getWorkbenchWindow());
IPreference pref = fPrefDAO.load(selectedBookMarkSetPref);
Assert.isTrue(fRootFolders.size() > 0, Messages.BookMarkExplorer_ERROR_NO_SET_FOUND);
if (pref != null)
fSelectedBookMarkSet = new FolderReference(pref.getLong().longValue()).resolve();
else {
fSelectedBookMarkSet = getRootFolderAt(0);
/* Save this to make sure subsequent calls succeed */
pref = Owl.getModelFactory().createPreference(selectedBookMarkSetPref);
pref.putLongs(fSelectedBookMarkSet.getId());
fPrefDAO.save(pref);
}
/* Expanded Elements */
loadExpandedElements();