Changeset 31816 in osm for applications
- Timestamp:
- 2015-12-12T15:47:40+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryExportAction.java
r31811 r31816 61 61 this.dialog = new MapillaryExportDialog(ok); 62 62 pane.setMessage(this.dialog); 63 pane.setOptions(new JButton[] { ok, cancel});63 pane.setOptions(new JButton[] {ok, cancel}); 64 64 65 65 JDialog dlg = pane.createDialog(Main.parent, tr("Export images")); … … 92 92 .getData().getImages()) 93 93 if (image instanceof MapillaryImportedImage) { 94 images.add(( (MapillaryImportedImage) image));94 images.add((MapillaryImportedImage) image); 95 95 } 96 96 try { … … 114 114 } 115 115 116 private class OKAction implements ActionListener {116 private static class OKAction implements ActionListener { 117 117 private final JOptionPane pane; 118 118 … … 127 127 } 128 128 129 private class CancelAction implements ActionListener {129 private static class CancelAction implements ActionListener { 130 130 private final JOptionPane pane; 131 131 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportAction.java
r31787 r31816 58 58 this.chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); 59 59 this.chooser.setAcceptAllFileFilterUsed(false); 60 this.chooser.addChoosableFileFilter(new FileNameExtensionFilter("images", 61 "jpg", "jpeg", "png")); 60 this.chooser.addChoosableFileFilter(new FileNameExtensionFilter("images", "jpg", "jpeg", "png")); 62 61 this.chooser.setMultiSelectionEnabled(true); 63 62 if (this.chooser.showOpenDialog(Main.parent) == JFileChooser.APPROVE_OPTION) { … … 73 72 String extension = MapillaryUtils.getExtension(file.listFiles()[j]); 74 73 try { 75 if ( extension.equals("jpg") || extension.equals("jpeg"))74 if ("jpg".equals(extension) || "jpeg".equals(extension)) 76 75 images.add(MapillaryUtils.readJPG(file.listFiles()[j])); 77 else if ( extension.equals("png"))76 else if ("png".equals(extension)) 78 77 images.add(MapillaryUtils.readPNG(file.listFiles()[j])); 79 78 } catch (ImageReadException | IOException | NullPointerException e1) { … … 83 82 } else { 84 83 String extension = MapillaryUtils.getExtension(file); 85 if ( extension.equals("jpg") || extension.equals("jpeg")) {84 if ("jpg".equals(extension) || "jpeg".equals(extension)) { 86 85 try { 87 86 images.add(MapillaryUtils.readJPG(file)); … … 91 90 Main.error(ex); 92 91 } 93 } else if (file.getPath().substring(file.getPath().length() - 4) 94 .equals(".png")) { 92 } else if (".png".equals(file.getPath().substring(file.getPath().length() - 4))) { 95 93 images.add(MapillaryUtils.readPNG(file)); 96 94 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportIntoSequenceAction.java
r31787 r31816 81 81 String extension = MapillaryUtils.getExtension(file.listFiles()[j]); 82 82 try { 83 if ( extension.equals("jpg") || extension.equals("jpeg"))83 if ("jpg".equals(extension) || "jpeg".equals(extension)) 84 84 MapillaryUtils.readJPG(file.listFiles()[j], true); 85 85 } catch (ImageReadException | NullPointerException | IOException e) { … … 89 89 } else { 90 90 String extension = MapillaryUtils.getExtension(file); 91 if ( extension.equals("jpg") || extension.equals("jpeg")) {91 if ("jpg".equals(extension) || "jpeg".equals(extension)) { 92 92 try { 93 93 this.images.add(MapillaryUtils.readJPG(file, true)); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * Actions that are normally attached to a button or a menu item and are then executed -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/cache/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * This package is all about caching resources downloaded from -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/HyperlinkLabel.java
r31815 r31816 59 59 * Sets a new URL, just pass the key of the image or null if there is none. 60 60 * 61 * @param key 62 * The key of the image that the hyperlink will point to. 63 * @throws MalformedURLException 61 * @param key The key of the image that the hyperlink will point to. 62 * @throws MalformedURLException when the key appended to the base URL forms a malformed URL 64 63 */ 65 64 public void setURL(String key) throws MalformedURLException { … … 104 103 * 105 104 */ 106 private class LinkPopUp extends JPopupMenu {105 private static class LinkPopUp extends JPopupMenu { 107 106 108 107 private static final long serialVersionUID = 1384054752970921552L; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * The GUI components that are special to the mapillary plugin. -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * The commands that the user can execute, which are recorded in the undo/redo-log. -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * This package deals with keeping a history of actions the user performed -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * Classes for downloading images, sequences and image metadata like traffic signs from <a href="https://mapillary.com">mapillary.com</a> . -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/export/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * Classes for exporting images that were downloaded from <a href="https://mapillary.com">mapillary.com</a> . -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * Classes for I/O operations like downloading images and their metadata and exporting them. -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/mode/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * The different modes that the {@link org.openstreetmap.josm.plugins.mapillary.MapillaryLayer} can be in. -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * Everything related to signing users in and out of Mapillary. -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * The main package in which all core-code (so at the moment all code) resides. -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/traffico/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * Components for painting traffic signs with the help of the traffico icon font. -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/package-info.java
r31814 r31816 1 // License: GPL. For details, see LICENSE file. 1 2 /** 2 3 * Utility classes for simplifying recurring tasks throughout the project.
Note:
See TracChangeset
for help on using the changeset viewer.