Changeset 33263 in osm for applications
- Timestamp:
- 2017-04-17T19:15:26+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/UndeleteAction.java
r32552 r33263 65 65 History h = HistoryDataSet.getInstance().getHistory(id, type); 66 66 67 if (h == null) { 68 Main.warn("Cannot find history for " + type + " " + id); 69 return; 70 } 71 67 72 HistoryOsmPrimitive hPrimitive1 = h.getLatest(); 68 73 HistoryOsmPrimitive hPrimitive2; … … 117 122 118 123 Relation rel = new Relation(id, (int) hPrimitive1.getVersion()); 119 120 124 HistoryRelation hRel = (HistoryRelation) hPrimitive2; 121 125 … … 142 146 members.add(new RelationMember(m.getRole(), p)); 143 147 } 144 145 148 rel.setMembers(members); 146 149 } 147 148 150 primitive = rel; 149 151 } … … 166 168 ? tr("Unable to undelete relation {0}. Object has likely been redacted", id) 167 169 : null; 168 GuiHelper.runInEDT(new Runnable() { 169 @Override 170 public void run() { 171 new Notification(msg).setIcon(JOptionPane.WARNING_MESSAGE).show(); 172 } 173 }); 170 GuiHelper.runInEDT(() -> new Notification(msg).setIcon(JOptionPane.WARNING_MESSAGE).show()); 174 171 Main.warn(msg); 175 172 } … … 187 184 Main.map.repaint(); 188 185 } 189 GuiHelper.runInEDT(new Runnable() { 190 @Override 191 public void run() { 192 AutoScaleAction.zoomTo(layer.data.allNonDeletedPrimitives()); 193 } 194 }); 186 GuiHelper.runInEDT(() -> AutoScaleAction.zoomTo(layer.data.allNonDeletedPrimitives())); 195 187 } 196 188 }
Note:
See TracChangeset
for help on using the changeset viewer.