001package jmri.jmrit.display.switchboardEditor; 002 003import javax.annotation.Nonnull; 004import javax.swing.AbstractAction; 005import jmri.jmrit.display.EditorActionFactory; 006import org.openide.util.lookup.ServiceProvider; 007 008/** 009 * 010 * @author Randall Wood Copyright 2020 011 */ 012@ServiceProvider(service = EditorActionFactory.class) 013public final class SwitchboardEditorActionFactory implements EditorActionFactory { 014 015 @Override 016 public AbstractAction createAction() { 017 return new SwitchboardEditorAction(getTitle()); 018 } 019 020 @Override 021 @Nonnull 022 public String getTitle() { 023 return Bundle.getMessage("SwitchboardEditor"); 024 } 025 026}