| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
package org.homeunix.thecave.buddi.view.menu.items; |
| 5 | |
|
| 6 | |
import java.awt.Toolkit; |
| 7 | |
import java.awt.event.ActionEvent; |
| 8 | |
import java.awt.event.KeyEvent; |
| 9 | |
|
| 10 | |
import javax.swing.KeyStroke; |
| 11 | |
|
| 12 | |
import org.homeunix.thecave.buddi.i18n.keys.MenuKeys; |
| 13 | |
import org.homeunix.thecave.buddi.model.prefs.PrefsModel; |
| 14 | |
import org.homeunix.thecave.buddi.view.TransactionFrame; |
| 15 | |
|
| 16 | |
import ca.digitalcave.moss.swing.MossFrame; |
| 17 | |
import ca.digitalcave.moss.swing.MossMenuItem; |
| 18 | |
|
| 19 | |
public class EditReconcileAndAdvanceTransaction extends MossMenuItem { |
| 20 | |
public static final long serialVersionUID = 0; |
| 21 | |
|
| 22 | |
public EditReconcileAndAdvanceTransaction(MossFrame frame) { |
| 23 | 0 | super(frame, PrefsModel.getInstance().getTranslator().get(MenuKeys.MENU_EDIT_RECONCILE_AND_ADVANCE), |
| 24 | |
KeyStroke.getKeyStroke(KeyEvent.VK_R, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() + KeyEvent.SHIFT_MASK)); |
| 25 | 0 | } |
| 26 | |
|
| 27 | |
@Override |
| 28 | |
public void actionPerformed(ActionEvent e) { |
| 29 | 0 | ((TransactionFrame) getFrame()).doClickReconcileAndAdvance(); |
| 30 | 0 | } |
| 31 | |
} |