Changeset 30355 in osm for applications/editors
- Timestamp:
- 2014-03-24T22:22:47+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java
r30110 r30355 58 58 59 59 @Override 60 60 public void actionPerformed(ActionEvent arg0) { 61 61 62 62 GeoImageLayer layer = getLayer(); … … 113 113 setMTime.addActionListener(new ActionListener(){ 114 114 @Override 115 115 public void actionPerformed(ActionEvent e) { 116 116 if (setMTime.isSelected()) { 117 117 mTimeMode.setEnabled(true); … … 230 230 SwingUtilities.invokeLater(new Runnable() { 231 231 @Override 232 232 public void run() { 233 233 JOptionPane.showMessageDialog(Main.parent, ioe.getMessage(), tr("Error"), JOptionPane.ERROR_MESSAGE); 234 234 } … … 279 279 //fileTmp = File.createTempFile("img", ".jpg", file.getParentFile()); 280 280 // 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=4017593281 // see https://bugs.openjdk.java.net/browse/JDK-4017593 282 282 // so we cannot use createTempFile(), which would create that "existing destination file" 283 283 // instead, let's use new File(), which doesn't actually create a file … … 301 301 SwingUtilities.invokeAndWait(new Runnable() { 302 302 @Override 303 303 public void run() { 304 304 JLabel l = new JLabel(tr("<html><h3>There are old backup files in the image directory!</h3>")); 305 305 l.setIcon(UIManager.getIcon("OptionPane.warningIcon")); … … 379 379 380 380 @Override 381 381 public Component createMenuComponent() { 382 382 JMenuItem geotaggingItem = new JMenuItem(this); 383 383 geotaggingItem.setEnabled(enabled(getLayer())); … … 386 386 387 387 @Override 388 388 public boolean supportLayers(List<Layer> layers) { 389 389 return layers.size() == 1 && layers.get(0) instanceof GeoImageLayer; 390 390 }
Note:
See TracChangeset
for help on using the changeset viewer.