Ignore:
Timestamp:
2015-05-04T23:24:14+02:00 (5 years ago)
Author:
Don-vip
Message:

squid:S1133 - remove deprecated code

File:
1 edited

Legend:

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

    r8308 r8324  
    88
    99import javax.swing.AbstractAction;
    10 import javax.swing.Icon;
    1110
    1211import org.openstreetmap.josm.Main;
     
    7271     * @param toolbarId identifier for the toolbar preferences. The iconName is used, if this parameter is null
    7372     * @param installAdapters false, if you don't want to install layer changed and selection changed adapters
    74      * @deprecated do not pass Icon, pass ImageProvider instead
    75      */
    76     @Deprecated
    77     public JosmAction(String name, Icon icon, String tooltip, Shortcut shortcut, boolean registerInToolbar, String toolbarId, boolean installAdapters) {
    78         super(name, icon);
    79         setHelpId();
    80         sc = shortcut;
    81         if (sc != null) {
    82             Main.registerActionShortcut(this, sc);
    83         }
    84         setTooltip(tooltip);
    85         if (getValue("toolbar") == null) {
    86             putValue("toolbar", toolbarId);
    87         }
    88         if (registerInToolbar && Main.toolbar != null) {
    89             Main.toolbar.register(this);
    90         }
    91         if (installAdapters) {
    92             installAdapters();
    93         }
    94     }
    95 
    96     /**
    97      * Constructs a {@code JosmAction}.
    98      *
    99      * @param name the action's text as displayed on the menu (if it is added to a menu)
    100      * @param icon the icon to use
    101      * @param tooltip  a longer description of the action that will be displayed in the tooltip. Please note
    102      *           that html is not supported for menu actions on some platforms.
    103      * @param shortcut a ready-created shortcut object or null if you don't want a shortcut. But you always
    104      *            do want a shortcut, remember you can always register it with group=none, so you
    105      *            won't be assigned a shortcut unless the user configures one. If you pass null here,
    106      *            the user CANNOT configure a shortcut for your action.
    107      * @param registerInToolbar register this action for the toolbar preferences?
    108      * @param toolbarId identifier for the toolbar preferences. The iconName is used, if this parameter is null
    109      * @param installAdapters false, if you don't want to install layer changed and selection changed adapters
    11073     * TODO: do not pass Icon, pass ImageProvider instead
    11174     */
Note: See TracChangeset for help on using the changeset viewer.