Changeset 29216 in osm for applications/editors/josm/plugins/reverter/src
- Timestamp:
- 2013-01-29T23:17:19+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetHandler.java
r28089 r29216 11 11 public static final String permissionKey = "remotecontrol.permission.revert_changeset"; 12 12 public static final boolean permissionDefault = true; 13 14 private int changesetId; 13 15 14 16 @Override … … 17 19 try 18 20 { 19 int changesetId = Integer.parseInt(args.get("id"));20 21 Main.worker.submit(new RevertChangesetTask(changesetId, ChangesetReverter.RevertType.FULL, true)); 21 22 } catch (Exception ex) { … … 41 42 return tr("Remote Control has been asked to revert a changeset."); 42 43 } 44 45 @Override 46 protected void validateRequest() throws RequestHandlerBadRequestException { 47 try { 48 changesetId = Integer.parseInt(args.get("id")); 49 } catch (NumberFormatException e) { 50 throw new RequestHandlerBadRequestException("NumberFormatException: "+e.getMessage()); 51 } 52 } 43 53 }
Note:
See TracChangeset
for help on using the changeset viewer.