Skip to content
Permalink
Browse files

Support AnyRail anchor point and track segement names

  • Loading branch information...
dsand47 committed Oct 6, 2018
1 parent 3f840f0 commit 366aeba7e5335d5ddaf703f84f8688f7056ec032
Showing with 2 additions and 2 deletions.
  1. +2 −2 java/src/jmri/jmrit/display/layoutEditor/LayoutEditorFindItems.java
@@ -567,15 +567,15 @@ public LayoutTrack findObjectByName(String name) {
if ((name != null) && !name.isEmpty()) {
if (name.startsWith("TO")) {
result = findLayoutTurnoutByName(name);
} else if (name.startsWith("A") || name.startsWith("EB") || name.startsWith("EC")) {
} else if (name.startsWith("A") || name.startsWith("EB") || name.startsWith("EC") || name.matches("F\\d+-A-\\d+")) {
result = findPositionablePointByName(name);
} else if (name.startsWith("X")) {
result = findLevelXingByName(name);
} else if (name.startsWith("SL")) {
result = findLayoutSlipByName(name);
} else if (name.startsWith("TUR")) {
result = findLayoutTurntableByName(name);
} else if (name.startsWith("T")) { // (this prefix has to go after "TO" & "TUR" prefixes above)
} else if (name.startsWith("T") || name.matches("F\\d+-S-\\d+")) { // (this prefix has to go after "TO" & "TUR" prefixes above)
result = findTrackSegmentByName(name);
} else if (name.endsWith("-EB")) { //BUGFIX: a 3rd party JMRI exporter gets this one wrong.
result = findPositionablePointByName(name);

0 comments on commit 366aeba

Please sign in to comment.
You can’t perform that action at this time.