Changeset 13692 in josm
- Timestamp:
- 2018-05-01T15:35:00+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r13691 r13692 34 34 import java.io.BufferedWriter; 35 35 import java.io.File; 36 import java.io.FileNotFoundException;37 36 import java.io.IOException; 38 37 import java.io.InputStream; … … 61 60 import java.security.spec.InvalidKeySpecException; 62 61 import java.security.spec.X509EncodedKeySpec; 62 import java.text.ParseException; 63 63 import java.util.ArrayList; 64 64 import java.util.Arrays; … … 81 81 import org.openstreetmap.josm.io.CertificateAmendment.NativeCertAmend; 82 82 import org.openstreetmap.josm.spi.preferences.Config; 83 84 import sun.awt.shell.Win32ShellFolderManager2;85 83 86 84 /** … … 775 773 if (file.getName().endsWith(".lnk")) { 776 774 try { 777 return new Win32ShellFolderManager2().createShellFolder(file).getLinkLocation();778 } catch ( FileNotFoundException e) {775 return new File(new WindowsShortcut(file).getRealFilename()); 776 } catch (IOException | ParseException e) { 779 777 Logging.error(e); 780 778 }
Note:
See TracChangeset
for help on using the changeset viewer.