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 edit of track comments. 009 * 010 * @author Daniel Boudreau Copyright (C) 2013 011 */ 012public class TrackEditCommentsAction extends AbstractAction { 013 014 private TrackEditFrame _tef; 015 016 public TrackEditCommentsAction(TrackEditFrame tef) { 017 super(Bundle.getMessage("MenuItemComments")); 018 _tef = tef; 019 } 020 021 @Override 022 public void actionPerformed(ActionEvent e) { 023 new TrackEditCommentsFrame(_tef._track); 024 } 025}