Ignore:
Timestamp:
2012-02-08T22:31:29+01:00 (10 years ago)
Author:
simon04
Message:

fix #7327 - show hint in undo-menu which action will be undone (from event stack)

File:
1 edited

Legend:

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

    r4894 r4908  
    160160    @Override public Collection<? extends OsmPrimitive> getParticipatingPrimitives() {
    161161        return cloneMap.keySet();
     162    }
     163
     164    public String getDescrpitionText() {
     165        Object o = getDescription();
     166        if (o instanceof JLabel) {
     167            return ((JLabel) o).getText();
     168        } else {
     169            return o.toString();
     170        }
    162171    }
    163172
Note: See TracChangeset for help on using the changeset viewer.