Index: trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java	(revision 5735)
+++ trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java	(revision 5736)
@@ -45,4 +45,7 @@
     "Select them and press the shortcut for Orthogonalize / Undo. The default is Shift-Q.)");
 
+    /**
+     * Constructor
+     */
     public OrthogonalizeAction() {
         super(tr("Orthogonalize Shape"),
@@ -78,4 +81,7 @@
      */
     public static class Undo extends JosmAction {
+        /**
+         * Constructor
+         */
         public Undo() {
             super(tr("Orthogonalize Shape / Undo"), "ortho",
@@ -177,5 +183,5 @@
         } catch (InvalidUserInputException ex) {
             if (ex.getMessage().equals("usage")) {
-                JOptionPane.showMessageDialog(
+                ConditionalOptionPaneUtil.showMessageDialog("orthogonalize_usage",
                         Main.parent,
                         "<html><h2>" + tr("Usage") + "</h2>" + USAGE + "</html>",
@@ -184,5 +190,5 @@
             }
             else {
-                JOptionPane.showMessageDialog(
+                ConditionalOptionPaneUtil.showMessageDialog("orthogonalize_error",
                         Main.parent,
                         "<html>" + ex.getMessage() + "<br><hr><h2>" + tr("Usage") + "</h2>" + USAGE + "</html>",
@@ -421,4 +427,5 @@
          * Then sum up all horizontal / vertical segments to have a good guess for the
          * heading of the entire way.
+         * @throws InvalidUserInputException 
          */
         public void calcDirections(Direction pInitialDirection) throws InvalidUserInputException {
