Coverage Report - org.homeunix.thecave.buddi.view.menu.items.EditEditScheduledTransactions
 
Classes in this File Line Coverage Branch Coverage Complexity
EditEditScheduledTransactions
100%
6/6
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  
 
 8  
 import org.homeunix.thecave.buddi.i18n.BuddiKeys;
 9  
 import org.homeunix.thecave.buddi.i18n.keys.MenuKeys;
 10  
 import org.homeunix.thecave.buddi.model.prefs.PrefsModel;
 11  
 import org.homeunix.thecave.buddi.view.MainFrame;
 12  
 import org.homeunix.thecave.buddi.view.ScheduledTransactionListFrame;
 13  
 
 14  
 import ca.digitalcave.moss.swing.MossMenuItem;
 15  
 import ca.digitalcave.moss.swing.exception.WindowOpenException;
 16  
 
 17  
 public class EditEditScheduledTransactions extends MossMenuItem{
 18  
         public static final long serialVersionUID = 0;
 19  
 
 20  
         //This has to be a AccountFrame, as we need to get selected accounts.
 21  
         public EditEditScheduledTransactions(MainFrame frame) {
 22  30480
                 super(frame, PrefsModel.getInstance().getTranslator().get(MenuKeys.MENU_EDIT_EDIT_SCHEDULED_TRANSACTIONS));
 23  30480
         }
 24  
 
 25  
         @Override
 26  
         public void actionPerformed(ActionEvent e) {
 27  
                 try {
 28  1845
                         ScheduledTransactionListFrame scheduledTransactionsFrame = new ScheduledTransactionListFrame((MainFrame) getFrame());
 29  1845
                         scheduledTransactionsFrame.openWindow(
 30  
                                         null, 
 31  
                                         PrefsModel.getInstance().getWindowLocation(BuddiKeys.SCHEDULED_TRANSACTION.toString()));
 32  
                 }
 33  1845
                 catch (WindowOpenException woe){}
 34  1845
         }
 35  
 }