Coverage Report - org.homeunix.thecave.buddi.view.menu.items.HelpDownloadPlugins
 
Classes in this File Line Coverage Branch Coverage Complexity
HelpDownloadPlugins
75%
6/8
N/A
1.5
 
 1  
 /*
 2  
  * Created on Aug 6, 2007 by wyatt
 3  
  */
 4  
 package org.homeunix.thecave.buddi.view.menu.items;
 5  
 
 6  
 import java.awt.event.ActionEvent;
 7  
 import java.util.logging.Level;
 8  
 import java.util.logging.Logger;
 9  
 
 10  
 import org.homeunix.thecave.buddi.Const;
 11  
 import org.homeunix.thecave.buddi.i18n.keys.MenuKeys;
 12  
 import org.homeunix.thecave.buddi.plugin.api.util.TextFormatter;
 13  
 
 14  
 import ca.digitalcave.moss.swing.MossFrame;
 15  
 import ca.digitalcave.moss.swing.MossMenuItem;
 16  
 import edu.stanford.ejalbert.BrowserLauncher;
 17  
 
 18  
 public class HelpDownloadPlugins extends MossMenuItem {
 19  
         public static final long serialVersionUID = 0;
 20  
 
 21  
         public HelpDownloadPlugins(MossFrame frame) {
 22  5975
                 super(frame, TextFormatter.getTranslation(MenuKeys.MENU_HELP_DOWNLOAD_PLUGINS));
 23  5975
         }
 24  
 
 25  
         public void actionPerformed(ActionEvent e) {
 26  
                 try{
 27  39
                         BrowserLauncher bl = new BrowserLauncher(null);
 28  39
                         bl.openURLinBrowser(
 29  
                                         Const.PROJECT_URL  
 30  
                                         + "download_plugins.jsp");
 31  
                 }
 32  0
                 catch (Exception ex){
 33  0
                         Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "Exception", ex);
 34  39
                 }
 35  39
         }
 36  
 }