Ticket #2091: TaggingPreset_Link_Cleanup.patch
| File TaggingPreset_Link_Cleanup.patch, 1021 bytes (added by , 17 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
376 376 @Override public void addToPanel(JPanel p, Collection<OsmPrimitive> sel) { 377 377 if(locale_text == null) 378 378 locale_text = text == null ? tr("More information about this feature") : tr(text); 379 JButton b = new JButton(locale_text);380 b.addActionListener(new ActionListener(){381 public void actionPerformed(ActionEvent e) {382 OpenBrowser.displayUrl(locale_href != null ? locale_href : href);383 }384 });385 379 p.add(new UrlLabel(locale_href, locale_text), GBC.eol().anchor(GBC.WEST)); 386 380 } 387 381 @Override public void addCommands(Collection<OsmPrimitive> sel, List<Command> cmds) {}
