Ignore:
Timestamp:
2012-02-11T18:56:53+01:00 (13 years ago)
Author:
simon04
Message:

fix #7370 - Refactor Command.getDescription

File:
1 edited

Legend:

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

    r3486 r4918  
    1313import java.util.Set;
    1414
    15 import javax.swing.JLabel;
     15import javax.swing.Icon;
    1616
    1717import org.openstreetmap.josm.data.osm.DataSet;
     
    252252
    253253    @Override
    254     public Object getDescription() {
    255         return new JLabel(trn("Purged {0} object", "Purged {0} objects", toPurge.size(), toPurge.size()), ImageProvider.get("data", "purge"), JLabel.HORIZONTAL);
     254    public String getDescriptionText() {
     255        return trn("Purged {0} object", "Purged {0} objects", toPurge.size(), toPurge.size());
     256    }
     257
     258    @Override
     259    public Icon getDescriptionIcon() {
     260        return ImageProvider.get("data", "purge");
    256261    }
    257262
Note: See TracChangeset for help on using the changeset viewer.