Changeset 6798 in josm for trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
- Timestamp:
- 2014-02-01T03:18:43+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r6317 r6798 41 41 */ 42 42 public final class OrthogonalizeAction extends JosmAction { 43 private String USAGE = tr(43 private static final String USAGE = tr( 44 44 "<h3>When one or more ways are selected, the shape is adjusted such, that all angles are 90 or 180 degrees.</h3>"+ 45 45 "You can add two nodes to the selection. Then, the direction is fixed by these two reference nodes. "+ … … 279 279 throw new InvalidUserInputException( 280 280 tr("<html>Please make sure all selected ways head in a similar direction<br>"+ 281 "or orthogonalize them one by one.</html>") );281 "or orthogonalize them one by one.</html>"), ex); 282 282 } 283 283 … … 439 439 direction = direction.changeBy(angleToDirectionChange(h2 - h1, TOLERANCE1)); 440 440 } catch (RejectedAngleException ex) { 441 throw new InvalidUserInputException(tr("Please select ways with angles of approximately 90 or 180 degrees.") );441 throw new InvalidUserInputException(tr("Please select ways with angles of approximately 90 or 180 degrees."), ex); 442 442 } 443 443 segDirections[i+1] = direction; … … 574 574 super(message); 575 575 } 576 InvalidUserInputException(String message, Throwable cause) { 577 super(message, cause); 578 } 576 579 InvalidUserInputException() { 577 580 super();
Note:
See TracChangeset
for help on using the changeset viewer.