Changeset 1230 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2009-01-10T13:37:19+01:00 (15 years ago)
Author:
stoecker
Message:

close #1973 (Lambert projection for Estonia). patch by jaak _ nutiteq _ com

Location:
trunk/src/org/openstreetmap/josm
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java

    r1217 r1230  
    2323
    2424    public HistoryInfoAction() {
    25         super(tr("History of Node/Way"), "about",tr("Display history information about OSM ways or nodes."),
    26         Shortcut.registerShortcut("core:history", tr("History of Node/Way"), KeyEvent.VK_H, Shortcut.GROUP_HOTKEY), true);
     25        super(tr("History of Element"), "about",
     26        tr("Display history information about OSM ways or nodes."),
     27        Shortcut.registerShortcut("core:history",
     28        tr("History of Element"), KeyEvent.VK_H, Shortcut.GROUP_HOTKEY), true);
    2729    }
    2830
    2931    public void actionPerformed(ActionEvent e) {
    30                 final Collection<Object> sel = new LinkedList<Object>();
    31                 new Visitor() {
    32                         public void visit(Node n) {
    33                                 OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/node/" + n.id + "/history");
    34                                 sel.add(n);
    35                         }
     32        final Collection<Object> sel = new LinkedList<Object>();
     33        new Visitor() {
     34            public void visit(Node n) {
     35                OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/node/" + n.id + "/history");
     36                sel.add(n);
     37            }
    3638
    37                         public void visit(Way w) {
    38                                 OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/way/" + w.id + "/history");
    39                                 sel.add(w);
    40                         }
     39            public void visit(Way w) {
     40                OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/way/" + w.id + "/history");
     41                sel.add(w);
     42            }
    4143
    42                         public void visit(Relation e) {
    43                                 OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/relation/" + e.id + "/history");
    44                                 sel.add(e);
    45                         }
     44            public void visit(Relation e) {
     45                OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/relation/" + e.id + "/history");
     46                sel.add(e);
     47            }
    4648
    47                         public void visitAll() {
    48                                 for (OsmPrimitive osm : Main.ds.getSelected())
    49                                         osm.visit(this);
    50                         }
    51                 }.visitAll();
     49            public void visitAll() {
     50                for (OsmPrimitive osm : Main.ds.getSelected())
     51                    osm.visit(this);
     52            }
     53        }.visitAll();
    5254
    53                 if (sel.isEmpty()) {
    54                                         JOptionPane.showMessageDialog(Main.parent,
    55                                                         tr("Please select at least one node or way."));
    56                                         return;
    57                 }
     55        if (sel.isEmpty()) {
     56            JOptionPane.showMessageDialog(Main.parent,
     57            tr("Please select at least one node, way or relation."));
     58                return;
     59        }
    5860    }
    59 
    6061}
  • trunk/src/org/openstreetmap/josm/data/projection/Projection.java

    r1169 r1230  
    3434        new Epsg4326(),
    3535        new Mercator(),
    36         new Lambert()
     36        new Lambert(),
     37        new LambertEST()
    3738    };
    3839
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r1228 r1230  
    196196        // show the close button
    197197        JButton close = new JButton(ImageProvider.get("misc", "close"));
    198         close.setToolTipText(tr("Close this panel. You can reopen it with the buttons in the left toolbar"));
     198        close.setToolTipText(tr("Close this panel. You can reopen it with the buttons in the left toolbar."));
    199199        close.setBorder(BorderFactory.createEmptyBorder());
    200200        final ActionListener closeActionListener = new ActionListener(){
Note: See TracChangeset for help on using the changeset viewer.