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