001package jmri.jmrix.loconet.sdfeditor;
002
003import javax.swing.JLabel;
004import jmri.jmrix.loconet.sdf.SdfMacro;
005
006/**
007 * Editor panel for the generic two-byte macros from the Digitrax sound
008 * definition language
009 * <p>
010 * In theory, this should never be invoked, because all the macros have specific
011 * editors. But editors like this never keep up with changes to content of
012 * underlying data, so we provide this as an escape claus for unrecognized
013 * content.
014 *
015 * @author Bob Jacobsen Copyright (C) 2007, 2008
016 */
017class TwoByteMacroEditor extends SdfMacroEditor {
018
019    public TwoByteMacroEditor(SdfMacro inst) {
020        super(inst);
021
022        // remove default message from SdfMacroEditor
023        this.removeAll();
024
025        // and set up our own
026        add(new JLabel("No editor defined for this instruction yet."));
027    }
028
029}