Changeset 5736 in josm


Ignore:
Timestamp:
2013-02-20T22:54:35+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #4276 - Allow to disable warning messages of orthogonalize action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java

    r5686 r5736  
    4545    "Select them and press the shortcut for Orthogonalize / Undo. The default is Shift-Q.)");
    4646
     47    /**
     48     * Constructor
     49     */
    4750    public OrthogonalizeAction() {
    4851        super(tr("Orthogonalize Shape"),
     
    7881     */
    7982    public static class Undo extends JosmAction {
     83        /**
     84         * Constructor
     85         */
    8086        public Undo() {
    8187            super(tr("Orthogonalize Shape / Undo"), "ortho",
     
    177183        } catch (InvalidUserInputException ex) {
    178184            if (ex.getMessage().equals("usage")) {
    179                 JOptionPane.showMessageDialog(
     185                ConditionalOptionPaneUtil.showMessageDialog("orthogonalize_usage",
    180186                        Main.parent,
    181187                        "<html><h2>" + tr("Usage") + "</h2>" + USAGE + "</html>",
     
    184190            }
    185191            else {
    186                 JOptionPane.showMessageDialog(
     192                ConditionalOptionPaneUtil.showMessageDialog("orthogonalize_error",
    187193                        Main.parent,
    188194                        "<html>" + ex.getMessage() + "<br><hr><h2>" + tr("Usage") + "</h2>" + USAGE + "</html>",
     
    421427         * Then sum up all horizontal / vertical segments to have a good guess for the
    422428         * heading of the entire way.
     429         * @throws InvalidUserInputException
    423430         */
    424431        public void calcDirections(Direction pInitialDirection) throws InvalidUserInputException {
Note: See TracChangeset for help on using the changeset viewer.