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

compilation problem

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  
    11package org.openstreetmap.josm.plugins.ImportImagePlugin;
     2import static org.openstreetmap.josm.tools.I18n.marktr;
     3import static org.openstreetmap.josm.tools.I18n.tr;
     4
    25import java.awt.event.ActionEvent;
    36
    47import javax.swing.JFileChooser;
    58import javax.swing.JOptionPane;
    6 
    7 import static org.openstreetmap.josm.tools.I18n.tr;
    8 import static org.openstreetmap.josm.tools.I18n.marktr;
    99
    1010import org.apache.log4j.Logger;
     
    2929     */
    3030    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);
    3232    }
    3333
    34     public void actionPerformed(ActionEvent arg0) {
     34    @Override
     35        public void actionPerformed(ActionEvent arg0) {
    3536
    3637        // Choose a file
  • applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java

    r27904 r28367  
    4747
    4848        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) {
    5354            // get all stuff visible on screen
    5455            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  
    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.