Changeset 28367 in osm for applications/editors/josm/plugins/print/src/org
- Timestamp:
- 2012-04-29T19:55:58+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.