Changeset 31476 in osm for applications/editors
- Timestamp:
- 2015-08-10T18:18:32+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/commands/CommandMoveImage.java
r31445 r31476 3 3 import static org.openstreetmap.josm.tools.I18n.trn; 4 4 5 import java.util.ArrayList;6 5 import java.util.List; 7 6 … … 31 30 public CommandMoveImage(List<MapillaryAbstractImage> images, double x, 32 31 double y) { 33 this.images = new ArrayList<>(images);32 this.images = images; 34 33 this.x = x; 35 34 this.y = y; … … 43 42 } 44 43 checkModified(); 45 Main.map.repaint(); 44 if (Main.main != null) 45 Main.map.repaint(); 46 46 } 47 47 … … 53 53 } 54 54 checkModified(); 55 Main.map.repaint(); 55 if (Main.main != null) 56 Main.map.repaint(); 56 57 } 57 58 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/commands/CommandTurnImage.java
r31445 r31476 3 3 import static org.openstreetmap.josm.tools.I18n.trn; 4 4 5 import java.util.ArrayList;6 5 import java.util.List; 7 6 … … 27 26 */ 28 27 public CommandTurnImage(List<MapillaryAbstractImage> images, double ca) { 29 this.images = new ArrayList<>(images);28 this.images = images; 30 29 this.ca = ca; 31 30 } … … 38 37 } 39 38 checkModified(); 40 Main.map.repaint(); 39 if (Main.main != null) 40 Main.map.repaint(); 41 41 } 42 42 … … 48 48 } 49 49 checkModified(); 50 Main.map.repaint(); 50 if (Main.main != null) 51 Main.map.repaint(); 51 52 } 52 53 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/commands/MapillaryRecord.java
r31445 r31476 6 6 7 7 /** 8 * History record system in order to let the user undo and redo commands 8 * History record system in order to let the user undo and redo commands. 9 9 * 10 10 * @author nokutu … … 97 97 public void undo() { 98 98 if (this.position == -1) 99 return;99 throw new IllegalStateException(); 100 100 this.commandList.get(this.position).undo(); 101 101 this.position--; … … 104 104 105 105 /** 106 * Redo latest undoedaction.106 * Redoes latest undone action. 107 107 */ 108 108 public void redo() { 109 109 if (this.position + 1 >= this.commandList.size()) 110 return;110 throw new IllegalStateException(); 111 111 this.position++; 112 112 this.commandList.get(this.position).redo(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/MapillaryUser.java
r31457 r31476 87 87 isTokenValid = true; 88 88 } 89 90 89 }
Note:
See TracChangeset
for help on using the changeset viewer.