*
* @param e action event details object.
*/
public void actionPerformed(ActionEvent e)
{
GlobalModel model = GlobalModel.SINGLETON;
IArticle[] articles = model.getSelectedArticles();
if (articles == null) return;
for (IArticle article : articles)
{
URL url = article.getLink();
if (url != null)
{
// Register clickthrough
IFeed feed = article.getFeed();
if (feed != null) feed.setClickthroughs(feed.getClickthroughs() + 1);
final UserPreferences preferences = model.getUserPreferences();
BrowserLauncher.showDocument(url, preferences.getInternetBrowser());
}
}
// Mark all articles as read
GlobalController.readArticles(true,
model.getSelectedGuide(),
model.getSelectedFeed(),
articles);
}