Ignore:
Timestamp:
2014-09-18T02:23:15+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #8262 - Relation editor: filter autocompletion of roles by relation type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableColumnModel.java

    r6296 r7556  
    88
    99import org.openstreetmap.josm.data.osm.DataSet;
     10import org.openstreetmap.josm.data.osm.Relation;
    1011
    1112public class MemberTableColumnModel extends DefaultTableColumnModel {
    1213
    13     public MemberTableColumnModel(DataSet ds) {
     14    /**
     15     * Constructs a new {@code MemberTableColumnModel}.
     16     * @param ds the data set. Must not be null
     17     * @param relation the relation. Can be null
     18     */
     19    public MemberTableColumnModel(DataSet ds, Relation relation) {
    1420        TableColumn col = null;
    1521
     
    2026        col.setPreferredWidth(100);
    2127        col.setCellRenderer(new MemberTableRoleCellRenderer());
    22         col.setCellEditor(new MemberRoleCellEditor(ds));
     28        col.setCellEditor(new MemberRoleCellEditor(ds, relation));
    2329        addColumn(col);
    2430
Note: See TracChangeset for help on using the changeset viewer.