001package jmri.jmrit.operations.rollingstock.engines.tools; 002 003import java.awt.event.ActionEvent; 004 005import javax.swing.AbstractAction; 006 007/** 008 * Frame for adding and editing the car roster for operations. 009 * 010 * @author Daniel Boudreau Copyright (C) 2008, 2014 011 */ 012final class EngineAttributeAction extends AbstractAction { 013 014 public EngineAttributeAction(EngineAttributeEditFrame caef) { 015 super(Bundle.getMessage("EngineQuantity")); 016 this.eaef = caef; 017 } 018 019 EngineAttributeEditFrame eaef; 020 021 @Override 022 public void actionPerformed(ActionEvent ae) { 023 eaef.toggleShowQuanity(); 024 } 025}