Changeset 30355 in osm for applications/editors


Ignore:
Timestamp:
2014-03-24T22:22:47+01:00 (11 years ago)
Author:
donvip
Message:

[josm_photo_geotagging] code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java

    r30110 r30355  
    5858
    5959    @Override
    60         public void actionPerformed(ActionEvent arg0) {
     60    public void actionPerformed(ActionEvent arg0) {
    6161
    6262        GeoImageLayer layer = getLayer();
     
    113113        setMTime.addActionListener(new ActionListener(){
    114114            @Override
    115                         public void actionPerformed(ActionEvent e) {
     115            public void actionPerformed(ActionEvent e) {
    116116                if (setMTime.isSelected()) {
    117117                    mTimeMode.setEnabled(true);
     
    230230                    SwingUtilities.invokeLater(new Runnable() {
    231231                        @Override
    232                                                 public void run() {
     232                        public void run() {
    233233                            JOptionPane.showMessageDialog(Main.parent, ioe.getMessage(), tr("Error"), JOptionPane.ERROR_MESSAGE);
    234234                        }
     
    279279            //fileTmp = File.createTempFile("img", ".jpg", file.getParentFile());
    280280            // on win32, file.renameTo(fileTmp) does not work when the destination file exists
    281             // see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4017593
     281            // see https://bugs.openjdk.java.net/browse/JDK-4017593
    282282            // so we cannot use createTempFile(), which would create that "existing destination file"
    283283            // instead, let's use new File(), which doesn't actually create a file
     
    301301                SwingUtilities.invokeAndWait(new Runnable() {
    302302                    @Override
    303                                         public void run() {
     303                    public void run() {
    304304                        JLabel l = new JLabel(tr("<html><h3>There are old backup files in the image directory!</h3>"));
    305305                        l.setIcon(UIManager.getIcon("OptionPane.warningIcon"));
     
    379379
    380380    @Override
    381         public Component createMenuComponent() {
     381    public Component createMenuComponent() {
    382382        JMenuItem geotaggingItem = new JMenuItem(this);
    383383        geotaggingItem.setEnabled(enabled(getLayer()));
     
    386386
    387387    @Override
    388         public boolean supportLayers(List<Layer> layers) {
     388    public boolean supportLayers(List<Layer> layers) {
    389389        return layers.size() == 1 && layers.get(0) instanceof GeoImageLayer;
    390390    }
Note: See TracChangeset for help on using the changeset viewer.