Changeset 36102 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateRelationAction.java
- Timestamp:
- 2023-07-24T15:55:23+02:00 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateRelationAction.java
r35829 r36102 7 7 import java.awt.GridBagLayout; 8 8 import java.awt.event.ActionEvent; 9 import java.awt.event.ActionListener;10 9 import java.awt.event.KeyEvent; 11 10 import java.util.Arrays; … … 93 92 94 93 // Thanks to TagInfo for the list 95 private static final List<String> RELATION_TYPES = Arrays.asList(new String[] { 96 "multipolygon", "boundary", "route", "site", "restriction", "associatedStreet", "public_transport", 97 "street", "collection", "address", "enforcement", "destination_sign", "route_master", "junction", 98 "waterway", "bridge", "tunnel", "surveillance" 99 }); 94 private static final List<String> RELATION_TYPES = Arrays.asList("multipolygon", "boundary", "route", "site", 95 "restriction", "associatedStreet", "public_transport", "street", "collection", "address", "enforcement", 96 "destination_sign", "route_master", "junction", "waterway", "bridge", "tunnel", "surveillance"); 100 97 101 98 private String askForType() { … … 122 119 dlg.setModalityType(ModalityType.DOCUMENT_MODAL); 123 120 124 keys.getEditor().addActionListener(new ActionListener() { 125 @Override 126 public void actionPerformed(ActionEvent e) { 127 dlg.setVisible(false); 128 optionPane.setValue(JOptionPane.OK_OPTION); 129 } 121 keys.getEditor().addActionListener(e -> { 122 dlg.setVisible(false); 123 optionPane.setValue(JOptionPane.OK_OPTION); 130 124 }); 131 125
Note:
See TracChangeset
for help on using the changeset viewer.