Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
- Timestamp:
- 2009-08-30T19:07:24+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r1911 r2017 35 35 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 36 36 import org.openstreetmap.josm.gui.MapView; 37 import org.openstreetmap.josm.gui.OptionPaneUtil;38 37 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 39 38 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; … … 200 199 JColorChooser c = new JColorChooser(getColor(getName())); 201 200 Object[] options = new Object[]{tr("OK"), tr("Cancel"), tr("Default")}; 202 int answer = OptionPaneUtil.showOptionDialog(201 int answer = JOptionPane.showOptionDialog( 203 202 Main.parent, 204 203 c, … … 206 205 JOptionPane.OK_CANCEL_OPTION, 207 206 JOptionPane.PLAIN_MESSAGE, 207 null, 208 208 options, 209 209 options[0] … … 228 228 public void actionPerformed(ActionEvent e) { 229 229 if (! AudioPlayer.paused()) { 230 OptionPaneUtil.showMessageDialog(230 JOptionPane.showMessageDialog( 231 231 Main.parent, 232 232 tr("You need to pause audio at the moment when you hear your synchronization cue."), … … 238 238 AudioMarker recent = AudioMarker.recentlyPlayedMarker(); 239 239 if (synchronizeAudioMarkers(recent)) { 240 OptionPaneUtil.showMessageDialog(240 JOptionPane.showMessageDialog( 241 241 Main.parent, 242 242 tr("Audio synchronized at point {0}.", recent.text), … … 245 245 ); 246 246 } else { 247 OptionPaneUtil.showMessageDialog(247 JOptionPane.showMessageDialog( 248 248 Main.parent, 249 249 tr("Unable to synchronize in layer being played."), … … 260 260 public void actionPerformed(ActionEvent e) { 261 261 if (! AudioPlayer.paused()) { 262 OptionPaneUtil.showMessageDialog(262 JOptionPane.showMessageDialog( 263 263 Main.parent, 264 264 tr("You need to have paused audio at the point on the track where you want the marker."), … … 339 339 } 340 340 if (am == null) { 341 OptionPaneUtil.showMessageDialog(341 JOptionPane.showMessageDialog( 342 342 Main.parent, 343 343 tr("No existing audio markers in this layer to offset from."),
Note:
See TracChangeset
for help on using the changeset viewer.