Changeset 24108 in osm for applications/editors


Ignore:
Timestamp:
2010-11-07T13:50:13+01:00 (14 years ago)
Author:
oliverw
Message:

Added 'relation' column.

File:
1 edited

Legend:

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

    r24093 r24108  
    2222public class StreetTableModel extends AddressEditTableModel {
    2323
    24         private static final int NUMBER_OF_COLUMNS = 4;
    25         private static final String[] COLUMN_NAMES = new String[]{tr("Type"), tr("Name"), tr("Segments"), tr("Addresses")};
    26         private static final Class<?>[] COLUMN_CLASSES = new Class<?>[]{String.class, String.class, Integer.class, Integer.class};
     24        private static final int NUMBER_OF_COLUMNS = 5;
     25        private static final String[] COLUMN_NAMES = new String[]{tr("Type"), tr("Name"), tr("Segments"), tr("Addresses"), tr("Relation")};
     26        private static final Class<?>[] COLUMN_CLASSES = new Class<?>[]{String.class, String.class, Integer.class, Integer.class, Boolean.class};
    2727       
    2828        /**
     
    9494                case 3:
    9595                        return sNode.getNumberOfAddresses();
     96                case 4:
     97                        return sNode.hasAssociatedStreetRelation();
    9698                default:
    9799                        throw new RuntimeException("Invalid column index: " + column);
Note: See TracChangeset for help on using the changeset viewer.