Ignore:
Timestamp:
2015-05-03T18:52:19+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] update to JOSM 7817

Location:
applications/editors/josm/plugins/public_transport/src/public_transport
Files:
3 edited

Legend:

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

    r30701 r31114  
    6767  }
    6868
    69   public void actionPerformed(ActionEvent event) {
     69  @Override
     70public void actionPerformed(ActionEvent event) {
    7071
    7172    if (dialog == null)
     
    316317      return;
    317318    box.enlargeBoundingBox();
    318     Main.map.mapView.recalculateCenterScale(box);
     319    Main.map.mapView.zoomTo(box);
    319320  }
    320321
     
    357358  private class FocusAddAction extends AbstractAction
    358359  {
     360    @Override
    359361    public void actionPerformed(ActionEvent e)
    360362    {
  • applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java

    r30532 r31114  
    6464    }
    6565
     66    @Override
    6667    public void valueChanged(ListSelectionEvent e) {
    6768      root.routesSelectionChanged();
     
    7677    }
    7778
     79    @Override
    7880    public int compareTo(RouteReference rr) {
    7981      if (route.get("route") != null)
     
    124126    }
    125127
     128    @Override
    126129    public String toString() {
    127130      String buf = route.get("route");
     
    162165    }
    163166
     167    @Override
    164168    public boolean isCellEditable(int row, int column) {
    165169      if ((column == 0) && (hasFixedKeys))
     
    207211    }
    208212
     213    @Override
    209214    public void tableChanged(TableModelEvent e)
    210215    {
     
    242247    }
    243248
     249    @Override
    244250    public TableCellEditor getCellEditor(int row, int column) {
    245251      TableCellEditor editor = null;
     
    266272    public Vector<Node> nodes = new Vector<Node>();
    267273
     274    @Override
    268275    public boolean isCellEditable(int row, int column) {
    269276      if (column != STOPLIST_ROLE_COLUMN)
     
    272279    }
    273280
     281    @Override
    274282    public void addRow(Object[] obj) {
    275283      throw new UnsupportedOperationException();
    276284    }
    277285
     286    @Override
    278287    public void insertRow(int insPos, Object[] obj) {
    279288      throw new UnsupportedOperationException();
     
    323332
    324333  private class StoplistTableModelListener implements TableModelListener {
     334    @Override
    325335    public void tableChanged(TableModelEvent e)
    326336    {
     
    383393    }
    384394
     395    @Override
    385396    public int compareTo(StopReference sr) {
    386397      if (this.index < sr.index)
     
    426437  }
    427438
    428   public void actionPerformed(ActionEvent event) {
     439  @Override
     440public void actionPerformed(ActionEvent event) {
    429441    Frame frame = JOptionPane.getFrameForComponent(Main.parent);
    430442    DataSet mainDataSet = Main.main.getCurrentDataSet();
     
    10781090      for (int i = 0; i < relsListModel.size(); ++i)
    10791091      {
    1080     if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)
     1092    if (currentRoute == relsListModel.elementAt(i).route)
    10811093      relsList.setSelectedIndex(i);
    10821094      }
     
    10931105      for (int i = 0; i < relsListModel.size(); ++i)
    10941106      {
    1095     if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)
     1107    if (currentRoute == relsListModel.elementAt(i).route)
    10961108      relsList.setSelectedIndex(i);
    10971109      }
     
    11511163      for (int i = 0; i < relsListModel.size(); ++i)
    11521164      {
    1153         if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)
     1165        if (currentRoute == relsListModel.elementAt(i).route)
    11541166          relsList.setSelectedIndex(i);
    11551167      }
     
    12311243        return;
    12321244      box.enlargeBoundingBox();
    1233       Main.map.mapView.recalculateCenterScale(box);
     1245      Main.map.mapView.zoomTo(box);
    12341246    }
    12351247    else if ("routePattern.itineraryMark".equals(event.getActionCommand()))
     
    15141526        return;
    15151527      box.enlargeBoundingBox();
    1516       Main.map.mapView.recalculateCenterScale(box);
     1528      Main.map.mapView.zoomTo(box);
    15171529    }
    15181530    else if ("routePattern.stoplistMark".equals(event.getActionCommand()))
     
    20642076    if (relsList.isSelectedIndex(selectedPos))
    20652077    {
    2066       currentRoute = ((RouteReference)relsListModel.elementAt(selectedPos)).route;
     2078      currentRoute = relsListModel.elementAt(selectedPos).route;
    20672079      tabbedPane.setEnabledAt(1, true);
    20682080      tabbedPane.setEnabledAt(2, true);
     
    21632175        if (!(way.isIncomplete()))
    21642176        {
    2165           if ("backward".equals((String)(itineraryData.getValueAt(i, 1))))
     2177          if ("backward".equals((itineraryData.getValueAt(i, 1))))
    21662178          {
    21672179            for (int j = way.getNodesCount()-2; j >= 0; --j)
  • applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java

    r30532 r31114  
    7474  }
    7575
    76   public void actionPerformed(ActionEvent event)
     76  @Override
     77public void actionPerformed(ActionEvent event)
    7778  {
    7879    if (dialog == null)
     
    246247    if (selectedPos >= 0)
    247248    {
    248       currentTrack = ((TrackReference)tracksListModel.elementAt(selectedPos));
     249      currentTrack = (tracksListModel.elementAt(selectedPos));
    249250      dialog.setTrackValid(true);
    250251
     
    256257      //Prepare Stoplist
    257258      dialog.setStoplistTableModel
    258           (((TrackReference)tracksListModel.elementAt(selectedPos)).stoplistTM);
     259          (tracksListModel.elementAt(selectedPos).stoplistTM);
    259260    }
    260261    else
     
    354355      return;
    355356    box.enlargeBoundingBox();
    356     Main.map.mapView.recalculateCenterScale(box);
     357    Main.map.mapView.zoomTo(box);
    357358  }
    358359
     
    402403    return new AbstractAction()
    403404    {
    404       public void actionPerformed(ActionEvent e)
     405      @Override
     406    public void actionPerformed(ActionEvent e)
    405407      {
    406408        JTable table = dialog.getWaypointsTable();
     
    430432    return new AbstractAction()
    431433    {
    432       public void actionPerformed(ActionEvent e)
     434      @Override
     435    public void actionPerformed(ActionEvent e)
    433436      {
    434437        JTable table = dialog.getStoplistTable();
     
    446449  private class FocusWaypointNameAction extends AbstractAction
    447450  {
     451    @Override
    448452    public void actionPerformed(ActionEvent e)
    449453    {
     
    476480    }
    477481
     482    @Override
    478483    public void actionPerformed(ActionEvent e)
    479484    {
     
    499504  private class FocusTrackStoplistNameAction extends AbstractAction
    500505  {
     506    @Override
    501507    public void actionPerformed(ActionEvent e)
    502508    {
     
    529535    }
    530536
     537    @Override
    531538    public void actionPerformed(ActionEvent e)
    532539    {
Note: See TracChangeset for help on using the changeset viewer.