setVisible(false);
return;
}
for (final TaggingPreset t : TaggingPreset.getMatchingPresets(types, tags, true)) {
final JLabel lbl = new PresetLabel(t);
lbl.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
Collection<OsmPrimitive> selection = t.createSelection(presetHandler.getSelection());
if (selection == null || selection.isEmpty())
return;