- Timestamp:
- 2018-05-26T17:24:23+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r13842 r13843 206 206 return new ButtonSpec( 207 207 tr("Restart"), 208 new ImageProvider("restart").setSize(ImageSizes.LARGEICON).get(),208 ImageProvider.get("restart", ImageSizes.LARGEICON), 209 209 tr("Restart the application."), 210 210 ht("/Action/Restart"), -
trunk/src/org/openstreetmap/josm/gui/download/BookmarkList.java
r12846 r13843 74 74 if (array.size() < 5) 75 75 throw new IllegalArgumentException(tr("Wrong number of arguments for bookmark")); 76 icon = ImageProvider.get("dialogs", "bookmark");76 icon = getDefaultIcon(); 77 77 name = array.get(0); 78 78 area = new Bounds(Double.parseDouble(array.get(1)), Double.parseDouble(array.get(2)), … … 102 102 */ 103 103 protected Bookmark(String name, Bounds area) { 104 this.icon = ImageProvider.get("dialogs", "bookmark");104 this.icon = getDefaultIcon(); 105 105 this.name = name; 106 106 this.area = area; 107 } 108 109 static ImageIcon getDefaultIcon() { 110 return ImageProvider.get("dialogs", "bookmark", ImageSizes.SMALLICON); 107 111 } 108 112 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r13375 r13843 319 319 @Override 320 320 public Icon getIcon() { 321 return new ImageProvider("dialogs/geoimage").setSize(ImageProvider.ImageSizes.LAYER).get();321 return ImageProvider.get("dialogs/geoimage", ImageProvider.ImageSizes.LAYER); 322 322 } 323 323 -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r13431 r13843 75 75 import org.openstreetmap.josm.tools.GBC; 76 76 import org.openstreetmap.josm.tools.ImageProvider; 77 import org.openstreetmap.josm.tools.ImageProvider.ImageSizes; 77 78 import org.openstreetmap.josm.tools.Logging; 78 79 import org.openstreetmap.josm.tools.Shortcut; … … 792 793 JButton b = new JButton(); 793 794 if ("up".equals(name)) { 794 b.setIcon(ImageProvider.get("dialogs", "up" ));795 b.setIcon(ImageProvider.get("dialogs", "up", ImageSizes.SMALLICON)); 795 796 } else if ("down".equals(name)) { 796 b.setIcon(ImageProvider.get("dialogs", "down" ));797 b.setIcon(ImageProvider.get("dialogs", "down", ImageSizes.SMALLICON)); 797 798 } else { 798 799 b.setText(name);
Note:
See TracChangeset
for help on using the changeset viewer.