001package jmri.jmrit.operations.rollingstock.engines.tools; 002 003import java.awt.event.ActionEvent; 004 005import javax.swing.AbstractAction; 006 007final class EngineDeleteAttributeAction extends AbstractAction { 008 009 public EngineDeleteAttributeAction(EngineAttributeEditFrame caef) { 010 super(Bundle.getMessage("DeleteUnusedAttributes")); 011 this.eaef = caef; 012 } 013 014 EngineAttributeEditFrame eaef; 015 016 @Override 017 public void actionPerformed(ActionEvent ae) { 018 eaef.deleteUnusedAttributes(); 019 } 020}