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/ModifiedConflictResolveCommand.java

    r3262 r4918  
    66
    77import java.util.Collection;
     8import javax.swing.Icon;
    89
    910import javax.swing.JLabel;
     
    3334    }
    3435
    35     @Override public JLabel getDescription() {
     36    @Override
     37    public String getDescriptionText() {
    3638        String msg = "";
    3739        switch(OsmPrimitiveType.from(conflict.getMy())) {
     
    4042        case RELATION: msg = marktr("Set the ''modified'' flag for relation {0}"); break;
    4143        }
    42         return new JLabel(
    43                         tr(msg,conflict.getMy().getId()),
    44                         ImageProvider.get("data", "object"),
    45                         JLabel.HORIZONTAL
    46         );
     44        return tr(msg,conflict.getMy().getId());
     45    }
     46
     47    @Override
     48    public Icon getDescriptionIcon() {
     49        return ImageProvider.get("data", "object");
    4750    }
    4851
Note: See TracChangeset for help on using the changeset viewer.