for (Object element : elements) {
if (element instanceof IBookMark) {
IBookMark bookmark = (IBookMark) element;
IFeed loadedFeed = fLoadedFeedCache.get(bookmark.getFeedLinkReference().getLink());
PreviewFeedDialog dialog = new PreviewFeedDialog(getShell(), bookmark, loadedFeed);
dialog.setBlockOnOpen(false);
dialog.open();
if (offset != 0) {
Point location = dialog.getShell().getLocation();
dialog.getShell().setLocation(location.x + offset, location.y + offset);
}
offset += 20;
}
}