Changeset 28367 in osm for applications/editors/josm/plugins
- Timestamp:
- 2012-04-29T19:55:58+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java
r27906 r28367 1 1 package org.openstreetmap.josm.plugins.ImportImagePlugin; 2 import static org.openstreetmap.josm.tools.I18n.marktr; 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 2 5 import java.awt.event.ActionEvent; 3 6 4 7 import javax.swing.JFileChooser; 5 8 import javax.swing.JOptionPane; 6 7 import static org.openstreetmap.josm.tools.I18n.tr;8 import static org.openstreetmap.josm.tools.I18n.marktr;9 9 10 10 import org.apache.log4j.Logger; … … 29 29 */ 30 30 public LoadImageAction() { 31 super(tr("Import image"), null, tr("Import georeferenced image"), null, false, "importimage/loadimage", true);31 super(tr("Import image"), (String)null, tr("Import georeferenced image"), null, false, "importimage/loadimage", true); 32 32 } 33 33 34 public void actionPerformed(ActionEvent arg0) { 34 @Override 35 public void actionPerformed(ActionEvent arg0) { 35 36 36 37 // Choose a file -
applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java
r27904 r28367 47 47 48 48 public Action() { 49 super(tr("Osmarender"), null, tr("Osmarender"), null, true, "osmarender", true); 50 } 51 52 public void actionPerformed(ActionEvent e) { 49 super(tr("Osmarender"), (String)null, tr("Osmarender"), null, true, "osmarender", true); 50 } 51 52 @Override 53 public void actionPerformed(ActionEvent e) { 53 54 // get all stuff visible on screen 54 55 LatLon bottomLeft = Main.map.mapView.getLatLon(0,Main.map.mapView.getHeight()); -
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintAction.java
r27852 r28367 1 1 /* 2 2 * PrintAction.java 3 * 3 * 4 4 * Copyright 2011 Kai Pastor 5 * 5 * 6 6 * This program is free software; you can redistribute it and/or modify 7 7 * it under the terms of the GNU General Public License as published by 8 8 * the Free Software Foundation; either version 2 of the License, or 9 9 * (at your option) any later version. 10 * 10 * 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 * 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 19 19 * MA 02110-1301, USA. 20 * 21 * 20 * 21 * 22 22 */ 23 23 … … 40 40 */ 41 41 public class PrintAction extends JosmAction implements Runnable { 42 42 43 43 /** 44 44 * Create a new PrintAction. 45 45 */ 46 46 public PrintAction() { 47 super(tr("Print..."), null, tr("Print the map"),48 Shortcut.registerShortcut("print:print", tr("File: {0}", tr("Print...")), 47 super(tr("Print..."), (String)null, tr("Print the map"), 48 Shortcut.registerShortcut("print:print", tr("File: {0}", tr("Print...")), 49 49 KeyEvent.VK_P, Shortcut.CTRL), 50 50 true, "print/print", true); … … 53 53 /** 54 54 * Trigger the printing dialog. 55 * 55 * 56 56 * @param e not used. 57 57 */ 58 public void actionPerformed(ActionEvent e) { 58 @Override 59 public void actionPerformed(ActionEvent e) { 59 60 // Allow the JOSM GUI to be redrawn before modifying preferences 60 61 SwingUtilities.invokeLater(this); 61 62 } 62 63 63 64 /** 64 65 * Open the printing dialog 65 * 66 * 66 67 * This will temporarily modify the mappaint preferences. 67 68 */ 68 public void run () { 69 @Override 70 public void run () { 69 71 PrintPlugin.adjustPrefs(); 70 72 PrintDialog window = new PrintDialog(Main.main.parent);
Note:
See TracChangeset
for help on using the changeset viewer.