Changeset 1230 in josm for trunk/src/org
- Timestamp:
- 2009-01-10T13:37:19+01:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 3 edited
-
actions/HistoryInfoAction.java (modified) (1 diff)
-
data/projection/LambertEST.java (added)
-
data/projection/Projection.java (modified) (1 diff)
-
gui/dialogs/ToggleDialog.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java
r1217 r1230 23 23 24 24 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); 27 29 } 28 30 29 31 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 } 36 38 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 } 41 43 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 } 46 48 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(); 52 54 53 if (sel.isEmpty()) {54 JOptionPane.showMessageDialog(Main.parent,55 tr("Please select at least one nodeor 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 } 58 60 } 59 60 61 } -
trunk/src/org/openstreetmap/josm/data/projection/Projection.java
r1169 r1230 34 34 new Epsg4326(), 35 35 new Mercator(), 36 new Lambert() 36 new Lambert(), 37 new LambertEST() 37 38 }; 38 39 -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r1228 r1230 196 196 // show the close button 197 197 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.")); 199 199 close.setBorder(BorderFactory.createEmptyBorder()); 200 200 final ActionListener closeActionListener = new ActionListener(){
Note:
See TracChangeset
for help on using the changeset viewer.
