Ticket #2091: TaggingPreset_Link_Cleanup.patch

File TaggingPreset_Link_Cleanup.patch, 1021 bytes (added by Claudius, 17 years ago)

Removing unused code for now obsolete button

  • src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

     
    376376        @Override public void addToPanel(JPanel p, Collection<OsmPrimitive> sel) {
    377377            if(locale_text == null)
    378378                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             });
    385379            p.add(new UrlLabel(locale_href, locale_text), GBC.eol().anchor(GBC.WEST));
    386380        }
    387381        @Override public void addCommands(Collection<OsmPrimitive> sel, List<Command> cmds) {}