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