Changeset 5762 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-03-07T22:11:36+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SideButton.java
r5471 r5762 84 84 } 85 85 86 // Used constructor with Action87 @Deprecated88 public SideButton(String imagename, String property, String tooltip, ActionListener actionListener)89 {90 super(makeIcon(imagename));91 doStyle();92 setActionCommand(imagename);93 addActionListener(actionListener);94 setToolTipText(tooltip);95 }96 97 // Used constructor with Action98 @Deprecated99 public SideButton(String name, String imagename, String property, String tooltip, Shortcut shortcut, ActionListener actionListener)100 {101 super(tr(name), makeIcon(imagename));102 if(shortcut != null)103 {104 shortcut.setMnemonic(this);105 if(tooltip != null) {106 tooltip = Main.platform.makeTooltip(tooltip, shortcut);107 }108 }109 setup(name, property, tooltip, actionListener);110 }111 112 // Used constructor with Action113 @Deprecated114 public SideButton(String name, String imagename, String property, String tooltip, ActionListener actionListener)115 {116 super(tr(name), makeIcon(imagename));117 setup(name, property, tooltip, actionListener);118 }119 86 private void setup(String name, String property, String tooltip, ActionListener actionListener) 120 87 { … … 125 92 putClientProperty("help", "Dialog/"+property+"/"+name); 126 93 } 94 127 95 private void doStyle() 128 96 { -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r5684 r5762 71 71 private Marker currentMarker; 72 72 73 @Deprecated74 public MarkerLayer(GpxData indata, String name, File associatedFile, GpxLayer fromLayer, boolean addMouseHandlerInConstructor) {75 this(indata, name, associatedFile, fromLayer);76 }77 78 73 public MarkerLayer(GpxData indata, String name, File associatedFile, GpxLayer fromLayer) { 79 74 super(name); -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r5543 r5762 729 729 } 730 730 731 @Deprecated732 public static ImageIcon overlay(Icon ground, String overlayImage, OverlayPosition pos) {733 return overlay(ground, ImageProvider.get(overlayImage), pos);734 }735 736 731 /** 737 732 * Decorate one icon with an overlay icon.
Note:
See TracChangeset
for help on using the changeset viewer.