Changeset 23944 in osm for applications/editors


Ignore:
Timestamp:
2010-10-31T01:07:10+02:00 (14 years ago)
Author:
oliverw
Message:

Added documentation, removed debug output.

Location:
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/AddressEditContainer.java

    r23933 r23944  
    5454
    5555/**
    56  *
     56 * Provides a container serving streets and unresolved/incomplete addresses.
    5757 * @author Oliver Wieland <oliver.wieland@online.de>
    5858 *
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/ApplyAllGuessesAction.java

    r23933 r23944  
    2121import org.openstreetmap.josm.plugins.fixAddresses.AddressEditContainer;
    2222import org.openstreetmap.josm.plugins.fixAddresses.AddressNode;
     23
     24/**
     25 * Applies the guessed values for a set of addresses.
     26 * @author Oliver Wieland <oliver.wieland@online.de>
     27 *
     28 */
    2329
    2430@SuppressWarnings("serial")
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/AssignAddressToStreetAction.java

    r23933 r23944  
    2020import org.openstreetmap.josm.plugins.fixAddresses.StreetNode;
    2121
     22/**
     23 * Assigns one or more selected addresses to a street, i. e. the name of the street is
     24 * used as value for the addr:street tag.
     25 * @author Oliver Wieland <oliver.wieland@online.de>
     26 *
     27 */
    2228public class AssignAddressToStreetAction extends AbstractAddressEditAction {
    2329
     
    4046                if (streetNode != null && ev.getSelectedUnresolvedAddresses() != null) {
    4147                        for (AddressNode addrNode : ev.getSelectedUnresolvedAddresses()) {
    42                                 addrNode.assignStreet(streetNode);
    43                                 System.out.println("Assign " + addrNode + " to " + streetNode);
     48                                addrNode.assignStreet(streetNode);                             
    4449                        }
    4550                }
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/GuessAddressDataAction.java

    r23933 r23944  
    2525/**
    2626 * Guesses address tags by picking the closest street node with a name. The same is done (some day)
    27  * with city, post code, state,...
     27 * with city, post code, state,... However, I strongly encourage you to check the result.
    2828 * @author Oliver Wieland <oliver.wieland@online.de>
    2929 *
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/UnresolvedAddressesTableModel.java

    r23939 r23944  
    3636
    3737/**
    38  *
     38 * Provides a table model to show unresolved addresses.
    3939 * @author Oliver Wieland <oliver.wieland@online.de>
    4040 *
     
    6262        }
    6363
     64        /* (non-Javadoc)
     65         * @see javax.swing.table.DefaultTableModel#getColumnCount()
     66         */
    6467        @Override
    6568        public int getColumnCount() {
    66                 // TODO Auto-generated method stub
    6769                return NUMBER_OF_COLUMNS;
    6870        }
    6971
     72        /* (non-Javadoc)
     73         * @see javax.swing.table.DefaultTableModel#getColumnName(int)
     74         */
    7075        @Override
    7176        public String getColumnName(int column) {
     
    7378        }
    7479
     80        /* (non-Javadoc)
     81         * @see javax.swing.table.DefaultTableModel#getRowCount()
     82         */
    7583        @Override
    7684        public int getRowCount() {
     
    8189        }
    8290
     91        /* (non-Javadoc)
     92         * @see javax.swing.table.DefaultTableModel#getValueAt(int, int)
     93         */
    8394        @Override
    8495        public Object getValueAt(int row, int column) {
     
    112123        }
    113124       
     125        /* (non-Javadoc)
     126         * @see javax.swing.table.AbstractTableModel#getColumnClass(int)
     127         */
    114128        @Override
    115129        public Class<?> getColumnClass(int arg0) {
     
    117131        }
    118132
     133        /* (non-Javadoc)
     134         * @see javax.swing.table.DefaultTableModel#isCellEditable(int, int)
     135         */
    119136        @Override
    120137        public boolean isCellEditable(int row, int column) {
    121                 // TODO Auto-generated method stub
    122138                return false;
    123139        }
    124140
     141        /* (non-Javadoc)
     142         * @see org.openstreetmap.josm.plugins.fixAddresses.gui.AddressEditTableModel#getEntityOfRow(int)
     143         */
    125144        @Override
    126145        public INodeEntity getEntityOfRow(int row) {
Note: See TracChangeset for help on using the changeset viewer.