Changeset 5718 in josm for trunk


Ignore:
Timestamp:
2013-02-15T21:02:25+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #8428 - Always show buttons for legacy setting .buttonhiding=false + constructors javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r5689 r5718  
    8989            } catch (IllegalArgumentException e) {
    9090                // Legacy settings
    91                 return Boolean.parseBoolean(s)?ButtonHiddingType.DYNAMIC:ButtonHiddingType.ALWAYS_HIDDEN;
     91                return Boolean.parseBoolean(s)?ButtonHiddingType.DYNAMIC:ButtonHiddingType.ALWAYS_SHOWN;
    9292            }
    9393        }
     
    151151    /**
    152152     * Constructor
    153      * (see below)
     153     *
     154     * @param name  the name of the dialog
     155     * @param iconName the name of the icon to be displayed
     156     * @param tooltip  the tool tip
     157     * @param shortcut  the shortcut
     158     * @param preferredHeight the preferred height for the dialog
    154159     */
    155160    public ToggleDialog(String name, String iconName, String tooltip, Shortcut shortcut, int preferredHeight) {
     
    158163    /**
    159164     * Constructor
    160      * (see below)
     165
     166     * @param name  the name of the dialog
     167     * @param iconName the name of the icon to be displayed
     168     * @param tooltip  the tool tip
     169     * @param shortcut  the shortcut
     170     * @param preferredHeight the preferred height for the dialog
     171     * @param defShow if the dialog should be shown by default, if there is no preference
    161172     */
    162173    public ToggleDialog(String name, String iconName, String tooltip, Shortcut shortcut, int preferredHeight, boolean defShow) {
Note: See TracChangeset for help on using the changeset viewer.