Ignore:
Timestamp:
2015-02-03T21:53:19+01:00 (9 years ago)
Author:
Don-vip
Message:

fix #11064 - disable undo/redo feature for table cell editors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingTextField.java

    r7509 r8005  
    154154     */
    155155    public AutoCompletingTextField() {
    156         init();
     156        this(0);
    157157    }
    158158
     
    163163     */
    164164    public AutoCompletingTextField(int columns) {
    165         super(columns);
     165        this(columns, true);
     166    }
     167
     168    /**
     169     * Constructs a new {@code AutoCompletingTextField}.
     170     * @param columns the number of columns to use to calculate the preferred width;
     171     * if columns is set to zero, the preferred width will be whatever naturally results from the component implementation
     172     * @param undoRedo Enables or not Undo/Redo feature. Not recommended for table cell editors, unless each cell provides its own editor
     173     */
     174    public AutoCompletingTextField(int columns, boolean undoRedo) {
     175        super(null, null, columns, undoRedo);
    166176        init();
    167177    }
Note: See TracChangeset for help on using the changeset viewer.