Ignore:
Timestamp:
2010-09-15T18:59:53+02:00 (14 years ago)
Author:
stoecker
Message:

remove tabs

File:
1 edited

Legend:

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

    r22148 r23192  
    1818  private GTFSStopTableModel gtfsStopTM = null;
    1919  private String type = null;
    20  
     20
    2121  public GTFSJoinCommand(GTFSImporterAction controller)
    2222  {
    2323    gtfsStopTM = controller.getGTFSStopTableModel();
    2424    workingLines = new Vector< Integer >();
    25    
     25
    2626    // use either selected lines or all lines if no line is selected
    2727    int[] selectedLines = controller.getDialog().getGTFSStopTable().getSelectedRows();
     
    3030    workingLines.add(selectedLines[0]);
    3131  }
    32  
     32
    3333  public boolean executeCommand()
    3434  {
     
    4343      Node n = iter.next();
    4444      if ((n != null) && (n.equals(gtfsStopTM.nodes.elementAt(j))))
    45         continue;
     45    continue;
    4646      if (dest != null)
    47         return false;
     47    return false;
    4848      dest = n;
    4949    }
     
    5151      return false;
    5252    undoMapNode = new Node(dest);
    53    
     53
    5454    Node node = gtfsStopTM.nodes.elementAt(j);
    5555    undoTableNode = node;
     
    5959      node.setDeleted(true);
    6060    }
    61    
     61
    6262    dest.put("highway", "bus_stop");
    6363    dest.put("stop_id", (String)gtfsStopTM.getValueAt(j, 0));
     
    6767    type = (String)gtfsStopTM.getValueAt(j, 2);
    6868    gtfsStopTM.setValueAt("moved", j, 2);
    69    
     69
    7070    return true;
    7171  }
    72  
     72
    7373  public void undoCommand()
    7474  {
     
    7676      return;
    7777    int j = workingLines.elementAt(0);
    78    
     78
    7979    Node node = gtfsStopTM.nodes.elementAt(j);
    8080    if (node != null)
     
    8383      node.setDeleted(true);
    8484    }
    85    
     85
    8686    if (undoMapNode != null)
    8787    {
     
    9797    gtfsStopTM.setValueAt(type, j, 2);
    9898  }
    99  
     99
    100100  public void fillModifiedData
    101101    (Collection< OsmPrimitive > modified, Collection< OsmPrimitive > deleted,
     
    103103  {
    104104  }
    105  
     105
    106106  @Override public JLabel getDescription()
    107107  {
Note: See TracChangeset for help on using the changeset viewer.