Ignore:
Timestamp:
2017-09-06T15:29:05+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - deprecate DataSet.getAutoCompletionManager() - replacement: AutoCompletionManager.of(DataSet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r12726 r12758  
    334334
    335335    /**
    336      * Maintains a list of used tags for autocompletion.
    337      */
    338     private AutoCompletionManager autocomplete;
    339 
    340     /**
    341336     * Returns the autocompletion manager, which maintains a list of used tags for autocompletion.
    342337     * @return the autocompletion manager
    343      */
     338     * @deprecated to be removed end of 2017. Use {@link AutoCompletionManager#of(DataSet)} instead.
     339     */
     340    @Deprecated
    344341    public AutoCompletionManager getAutoCompletionManager() {
    345         if (autocomplete == null) {
    346             autocomplete = new AutoCompletionManager(this);
    347             addDataSetListener(autocomplete);
    348         }
    349         return autocomplete;
     342        return AutoCompletionManager.of(this);
    350343    }
    351344
Note: See TracChangeset for help on using the changeset viewer.