* Matthew Toseland <[EMAIL PROTECTED]> [2007-11-20 23:39:27]:

> On Tuesday 20 November 2007 19:15, [EMAIL PROTECTED] wrote:
> > +    private void readBookmarks(BookmarkCategory category, SimpleFieldSet 
> sfs) {
> > +        synchronized (bookmarks) {
> > +            String[] categories = sfs.namesOfDirectSubsets();
> > +            for (int i = 0; i < categories.length; i++) {
> > +                SimpleFieldSet subset = sfs.subset(categories[i]);
> > +                BookmarkCategory currentCategory = new 
> BookmarkCategory(categories[i]);
> > +                category.addBookmark(currentCategory);
> > +                addBookmark(currentCategory, currentCategory, false);
> > +                readBookmarks(currentCategory, subset);
> > +            }
> > +
> > +            Iterator it = sfs.keyIterator();
> > +            while (it.hasNext()) {
> > +                String key = (String) it.next();
> > +                String line = sfs.get(key);
> > +                try {
> > +                    BookmarkItem item = new BookmarkItem(line, 
> node.alerts);
> > +                    category.addBookmark(item);
> > +                    addBookmark(category, item, false);
> > +                } catch (MalformedURLException e) {
> > +                    Logger.error(this, "Error while adding one of the 
> bookmarks :"+e.getMessage(), e);
> > +                }
> > +            }
> > +        }
> > +        storeBookmarks();
> 
> Maybe we shouldn't do this if we had a parse error?

Changed in r15897

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to