Ignore:
Timestamp:
2016-06-12T00:00:29+02:00 (8 years ago)
Author:
stoecker
Message:

see #9995, see #10684 - remove more hardcoded places of images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageResource.java

    r9705 r10356  
    9292        icon = getImageIconBounded(ImageProvider.ImageSizes.LARGEICON.getImageDimension());
    9393        a.putValue(Action.LARGE_ICON_KEY, icon);
     94        a.putValue("ImageResource", this);
     95    }
     96
     97    /**
     98     * Set both icons of an Action
     99     * @param a The action for the icons
     100     * @param addresource Adds an resource named "ImageResource" if <code>true</code>
     101     * @since 10356
     102     */
     103    public void getImageIcon(AbstractAction a, boolean addresource) {
     104        getImageIcon(a);
     105        if (addresource) {
     106            a.putValue("ImageResource", this);
     107        }
    94108    }
    95109
Note: See TracChangeset for help on using the changeset viewer.