Ignore:
Timestamp:
2012-04-29T19:55:58+02:00 (13 years ago)
Author:
jttt
Message:

compilation problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintAction.java

    r27852 r28367  
    11/*
    22 *      PrintAction.java
    3  *     
     3 *
    44 *      Copyright 2011 Kai Pastor
    5  *     
     5 *
    66 *      This program is free software; you can redistribute it and/or modify
    77 *      it under the terms of the GNU General Public License as published by
    88 *      the Free Software Foundation; either version 2 of the License, or
    99 *      (at your option) any later version.
    10  *     
     10 *
    1111 *      This program is distributed in the hope that it will be useful,
    1212 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
    1313 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1414 *      GNU General Public License for more details.
    15  *     
     15 *
    1616 *      You should have received a copy of the GNU General Public License
    1717 *      along with this program; if not, write to the Free Software
    1818 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
    1919 *      MA 02110-1301, USA.
    20  *     
    21  *     
     20 *
     21 *
    2222 */
    2323
     
    4040 */
    4141public class PrintAction extends JosmAction implements Runnable {
    42    
     42
    4343    /**
    4444     * Create a new PrintAction.
    4545     */
    4646    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...")),
    4949        KeyEvent.VK_P, Shortcut.CTRL),
    5050        true, "print/print", true);
     
    5353    /**
    5454     * Trigger the printing dialog.
    55      * 
     55     *
    5656     * @param e not used.
    5757     */
    58     public void actionPerformed(ActionEvent e) {
     58    @Override
     59        public void actionPerformed(ActionEvent e) {
    5960        // Allow the JOSM GUI to be redrawn before modifying preferences
    6061        SwingUtilities.invokeLater(this);
    6162    }
    62    
     63
    6364    /**
    6465     * Open the printing dialog
    65      * 
     66     *
    6667     * This will temporarily modify the mappaint preferences.
    6768     */
    68     public void run () {
     69    @Override
     70        public void run () {
    6971        PrintPlugin.adjustPrefs();
    7072        PrintDialog window = new PrintDialog(Main.main.parent);
Note: See TracChangeset for help on using the changeset viewer.