001package jmri.jmrit.operations.locations.tools;
002
003import java.awt.event.ActionEvent;
004import javax.swing.AbstractAction;
005import jmri.jmrit.operations.locations.TrackEditFrame;
006
007/**
008 * Action to launch selection of alternate track.
009 *
010 * @author Daniel Boudreau Copyright (C) 2011
011 */
012public class AlternateTrackAction extends AbstractAction {
013
014    private TrackEditFrame _tef;
015
016    public AlternateTrackAction(TrackEditFrame tef) {
017        super(Bundle.getMessage("AlternateTrack"));
018        _tef = tef;
019    }
020
021    @Override
022    public void actionPerformed(ActionEvent e) {
023        new AlternateTrackFrame(_tef);
024    }
025
026}