Changeset 12835 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-09-12T23:03:55+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetItem.java
r12758 r12835 18 18 19 19 import org.openstreetmap.josm.Main; 20 import org.openstreetmap.josm.data.osm.DataSet; 20 21 import org.openstreetmap.josm.data.osm.OsmPrimitive; 21 22 import org.openstreetmap.josm.data.osm.Tag; 22 import org.openstreetmap.josm.gui.MainApplication;23 import org.openstreetmap.josm.gui.layer.OsmDataLayer;24 23 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingTextField; 25 24 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList; … … 44 43 protected void initAutoCompletionField(AutoCompletingTextField field, List<String> keys) { 45 44 if (Main.main == null) return; 46 OsmDataLayer layer = MainApplication.getLayerManager().getEditLayer();47 if ( layer== null) {45 DataSet data = Main.main.getEditDataSet(); 46 if (data == null) { 48 47 return; 49 48 } 50 49 AutoCompletionList list = new AutoCompletionList(); 51 AutoCompletionManager.of( layer.data).populateWithTagValues(list, keys);50 AutoCompletionManager.of(data).populateWithTagValues(list, keys); 52 51 field.setAutoCompletionList(list); 53 52 }
Note:
See TracChangeset
for help on using the changeset viewer.