001package jmri.jmrit.operations.routes.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007/**
008 * Action to print all of the routes used in operations.
009 *
010 * @author Daniel Boudreau Copyright (C) 2012, 2023
011 */
012public class PrintRoutesAction extends AbstractAction {
013
014    public PrintRoutesAction(boolean isPreview) {
015        super(isPreview ? Bundle.getMessage("MenuItemPreview") : Bundle.getMessage("MenuItemPrint"));
016        _isPreview = isPreview;
017    }
018
019    boolean _isPreview;
020
021    @Override
022    public void actionPerformed(ActionEvent e) {
023        new PrintRoutes(_isPreview);
024    }
025}