Ignore:
Timestamp:
2012-02-19T19:43:23+01:00 (8 years ago)
Author:
stoecker
Message:

remove deprecations, all plugins are updated and release, external plugins should break, so they get updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/PseudoCommand.java

    r4918 r5002  
    1515abstract public class PseudoCommand {
    1616    /**
    17      * Provide a description that can be presented in a list or tree view.
    18      * @deprecated This abstract method is deprecated.
    19      * On 2012-03-01, this abstract method will be removed.
    20      * At the same moment, the methods {@link #getDescrpitionText()} and {@link #getDescrpitionIcon()}
    21      * will be made abstract.
    22      * For a smooth transition, replace {@link #getDescription()} by implementations of
    23      * {@link #getDescrpitionText()} and {@link #getDescrpitionIcon()} as early as possible.
    24      * {@link #getDescription()} is no longer abstract and can therefore be removed.
    25      */
    26     @Deprecated
    27     public Object getDescription() {
    28         return null;
    29     }
    30 
    31     /**
    3217     * Provides a description text representing this command.
    3318     */
    34     public String getDescriptionText() {
    35         Object o = getDescription();
    36         if (o instanceof JLabel) {
    37             return ((JLabel) o).getText();
    38         } else {
    39             return o.toString();
    40         }
    41     }
     19    abstract public String getDescriptionText();
    4220
    4321    /**
     
    4523     */
    4624    public Icon getDescriptionIcon() {
    47         Object o = getDescription();
    48         if (o instanceof JLabel) {
    49             return ((JLabel) o).getIcon();
    50         } else {
    51             return null;
    52         }
     25        return null;
    5326    }
    5427
Note: See TracChangeset for help on using the changeset viewer.