Changeset 35829 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateRelationAction.java
- Timestamp:
- 2021-10-03T14:14:25+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateRelationAction.java
r34551 r35829 27 27 import org.openstreetmap.josm.data.osm.RelationMember; 28 28 import org.openstreetmap.josm.gui.MainApplication; 29 import org.openstreetmap.josm.gui.tagging.ac.AutoComp letingComboBox;29 import org.openstreetmap.josm.gui.tagging.ac.AutoCompComboBox; 30 30 import org.openstreetmap.josm.spi.preferences.Config; 31 31 import org.openstreetmap.josm.tools.GBC; … … 103 103 panel.add(new JLabel(tr("Choose a type for the relation:")), GBC.eol().insets(0, 0, 0, 5)); 104 104 105 final AutoComp letingComboBox keys = new AutoCompletingComboBox();106 keys. setPossibleItems(RELATION_TYPES);105 final AutoCompComboBox<String> keys = new AutoCompComboBox<>(); 106 keys.getModel().addAllElements(RELATION_TYPES); 107 107 keys.setEditable(true); 108 108 keys.getEditor().setItem(Config.getPref().get(PREF_LASTTYPE, "multipolygon"));
Note:
See TracChangeset
for help on using the changeset viewer.