Ignore:
Timestamp:
2010-04-08T14:26:34+02:00 (14 years ago)
Author:
roland
Message:

Public Transport Plugin: Shelter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/public_transport/src/public_transport/WaypointsNameCommand.java

    r20835 r20839  
    4242      waypointTM.nodes.elementAt(workingLine).put("name", name);
    4343      waypointTM.nodes.elementAt(workingLine).put("shelter", shelter);
    44       waypointTM.inEvent = true;
     44    }
     45    waypointTM.inEvent = true;
     46    if (name == null)
     47      waypointTM.setValueAt("", workingLine, 1);
     48    else
    4549      waypointTM.setValueAt(name, workingLine, 1);
    46       if (shelter == null)
    47         waypointTM.setValueAt("", workingLine, 2);
    48       else
    49         waypointTM.setValueAt(shelter, workingLine, 2);
    50       waypointTM.inEvent = false;
    51     }
     50    if (shelter == null)
     51      waypointTM.setValueAt("", workingLine, 2);
     52    else
     53      waypointTM.setValueAt(shelter, workingLine, 2);
     54    waypointTM.inEvent = false;
    5255    return true;
    5356  }
     
    5962      waypointTM.nodes.elementAt(workingLine).put("name", oldName);
    6063      waypointTM.nodes.elementAt(workingLine).put("shelter", oldShelter);
    61       waypointTM.inEvent = true;
     64    }
     65    waypointTM.inEvent = true;
     66    if (oldName == null)
     67      waypointTM.setValueAt("", workingLine, 1);
     68    else
    6269      waypointTM.setValueAt(oldName, workingLine, 1);
    63       if (oldShelter == null)
    64         waypointTM.setValueAt("", workingLine, 2);
    65       else
    66         waypointTM.setValueAt(oldShelter, workingLine, 2);
    67       waypointTM.inEvent = false;
    68     }
     70    if (oldShelter == null)
     71      waypointTM.setValueAt("", workingLine, 2);
     72    else
     73      waypointTM.setValueAt(oldShelter, workingLine, 2);
     74    waypointTM.inEvent = false;
    6975  }
    7076 
Note: See TracChangeset for help on using the changeset viewer.