Changeset 11354 in josm
- Timestamp:
- 2016-12-02T23:39:45+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolver.java
r10413 r11354 33 33 import org.openstreetmap.josm.data.osm.OsmPrimitive; 34 34 import org.openstreetmap.josm.data.osm.Tag; 35 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 35 36 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingTextField; 36 37 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList; … … 196 197 public void prepareForEditing() { 197 198 AutoCompletionList acList = new AutoCompletionList(); 198 Main.getLayerManager().getEditLayer().data.getAutoCompletionManager().populateWithMemberRoles(acList); 199 OsmDataLayer editLayer = Main.getLayerManager().getEditLayer(); 200 if (editLayer != null) { 201 editLayer.data.getAutoCompletionManager().populateWithMemberRoles(acList); 202 } 199 203 tfRole.setAutoCompletionList(acList); 200 204 AutoCompletingTextField editor = (AutoCompletingTextField) tblResolver.getColumnModel().getColumn(2).getCellEditor(); … … 203 207 } 204 208 AutoCompletionList acList2 = new AutoCompletionList(); 205 Main.getLayerManager().getEditLayer().data.getAutoCompletionManager().populateWithKeys(acList2); 209 if (editLayer != null) { 210 editLayer.data.getAutoCompletionManager().populateWithKeys(acList2); 211 } 206 212 tfKey.setAutoCompletionList(acList2); 207 213 }
Note:
See TracChangeset
for help on using the changeset viewer.