001package jmri.jmrit.operations.locations.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007import jmri.jmrit.operations.setup.Setup;
008
009/**
010 * Track tool to enable the display of track moves.
011 *
012 * @author Bob Jacobsen Copyright (C) 2001
013 * @author Daniel Boudreau Copyright (C) 2014
014 */
015public class ShowTrackMovesAction extends AbstractAction {
016
017    public ShowTrackMovesAction() {
018        super(Bundle.getMessage("MenuItemShowTrackMoves"));
019    }
020
021    @Override
022    public void actionPerformed(ActionEvent e) {
023        // toggle
024        Setup.setShowTrackMovesEnabled(!Setup.isShowTrackMovesEnabled());
025    }
026}
027
028