searchFolders = new ArrayList(searchPaths.size());
Iterator pathsIter = searchPaths.iterator();
while (pathsIter.hasNext())
{
// construct folder paths
SiteViewSearchPath searchPath = (SiteViewSearchPath)pathsIter.next();
String path = searchPath.toString();
if (!path.equals(Folder.PATH_SEPARATOR))
{
path += getPath();
}
else
{
path = getPath();
}
// get existing folders from PageManager, create
// corresponding search folder objects, and add to
// search folders list
try
{
PageManager pageManager = getView().getPageManager();
Folder folder = pageManager.getFolder(path);
if (folder != null)
{
searchFolders.add(new SearchFolder(new FolderWeakReference(pageManager, folder), searchPath.getLocatorName()));
}
}
catch (NodeException ne)
{
}