Ticket #2091: TagginPreset_UrlLabel.patch
File TagginPreset_UrlLabel.patch, 1.4 KB (added by , 17 years ago) |
---|
-
src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
45 45 import org.openstreetmap.josm.tools.GBC; 46 46 import org.openstreetmap.josm.tools.ImageProvider; 47 47 import org.openstreetmap.josm.tools.OpenBrowser; 48 import org.openstreetmap.josm.tools.UrlLabel; 48 49 import org.openstreetmap.josm.tools.XmlObjectParser; 49 50 import org.xml.sax.SAXException; 50 51 … … 374 375 375 376 @Override public void addToPanel(JPanel p, Collection<OsmPrimitive> sel) { 376 377 if(locale_text == null) 377 locale_text = text == null ? tr(" Open map features in browser") : tr(text);378 locale_text = text == null ? tr("More information about this features") : tr(text); 378 379 JButton b = new JButton(locale_text); 379 380 b.addActionListener(new ActionListener(){ 380 381 public void actionPerformed(ActionEvent e) { 381 382 OpenBrowser.displayUrl(locale_href != null ? locale_href : href); 382 383 } 383 384 }); 384 p.add( b, GBC.eol().anchor(GBC.EAST));385 p.add(new UrlLabel(locale_href, locale_text), GBC.eol().anchor(GBC.WEST)); 385 386 } 386 387 @Override public void addCommands(Collection<OsmPrimitive> sel, List<Command> cmds) {} 387 388 }