Class ProgCheckAction
java.lang.Object
javax.swing.AbstractAction
jmri.jmrit.symbolicprog.tabbedframe.ProgCheckAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Check the names in an XML programmer file against the names.xml definitions
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) JPanel(package private) JFileChooser(package private) static Pattern(package private) static final String(package private) static Pattern(package private) static final String(package private) static Pattern(package private) static final StringFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) static String(package private) static StringcheckMissingNames(File file) protected static voidexpandElement(org.jdom2.Element el, List<org.jdom2.Element> list) Find all of the display elements descending from this element.(package private) static booleanfunctionMapName(String name) Check if the name is a function name, e.g.(package private) static org.jdom2.ElementAsk SAX to read and verify a file(package private) voidCheck for names in names.xml that are not in file(package private) voidwarnMissingNames(File file) Check for names in programer that are not in names.xmlMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
fci
-
_who
-
numericRegex
- See Also:
-
numericPattern
-
ffRegex
- See Also:
-
ffPattern
-
frRegex
- See Also:
-
frPattern
-
-
Constructor Details
-
ProgCheckAction
-
-
Method Details
-
actionPerformed
-
expandElement
Find all of the display elements descending from this element.- Parameters:
el- the element to searchlist- the list that will be populated with the found elements
-
warnMissingNames
Check for names in programer that are not in names.xml- Parameters:
file- A decoder definition XML file to be checked
-
checkMissingNames
-
warnIncompleteComprehensive
Check for names in names.xml that are not in file- Parameters:
file- A decoder definition XML file to be checked
-
checkIncompleteComprehensive
-
functionMapName
Check if the name is a function name, e.g. "F5 controls output 8" or "FL(f) controls output 14"- Parameters:
name- Possible function name to check- Returns:
- true if the input is a valid name
-
readFile
Ask SAX to read and verify a file- Parameters:
file- XML-formatted input file- Returns:
- root element if successful
- Throws:
org.jdom2.JDOMException- if file can't be parsedIOException- if problems reading file
-