001package jmri.jmrit.operations.locations.tools;
002
003import java.awt.event.ActionEvent;
004import javax.swing.AbstractAction;
005import jmri.jmrit.operations.locations.LocationEditFrame;
006
007/**
008 * Action to change all of tracks at a location to the same type of track. Track
009 * types are Spurs, Yards, Interchanges and Staging.
010 *
011 * @author Daniel Boudreau Copyright (C) 2011
012 * 
013 */
014public class ChangeTracksTypeAction extends AbstractAction {
015
016    private LocationEditFrame _lef;
017
018    public ChangeTracksTypeAction(LocationEditFrame lef) {
019        super(Bundle.getMessage("MenuItemChangeTrackType"));
020        _lef = lef;
021    }
022
023    @Override
024    public void actionPerformed(ActionEvent e) {
025        new ChangeTracksFrame(_lef);
026    }
027
028}