Changeset 1345 in josm for trunk/src/org/openstreetmap/josm/gui/tagging
- Timestamp:
- 2009-01-27T19:59:33+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r1339 r1345 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; … … 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 feature") : tr(text); 378 379 JButton b = new JButton(locale_text); 379 380 b.addActionListener(new ActionListener(){ … … 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) {} … … 567 568 return null; 568 569 JPanel p = new JPanel(new GridBagLayout()); 570 LinkedList<Item> l = new LinkedList<Item>(); 569 571 570 572 for (Item i : data) 571 i.addToPanel(p, selected); 573 { 574 if(i instanceof Link) 575 l.add(i); 576 else 577 i.addToPanel(p, selected); 578 } 579 for(Item link : l) 580 link.addToPanel(p, selected); 572 581 return p; 573 582 }
Note:
See TracChangeset
for help on using the changeset viewer.