Ignore:
Timestamp:
2009-08-30T19:07:24+02:00 (15 years ago)
Author:
Gubaer
Message:

removed OptionPaneUtil
cleanup of deprecated Layer API
cleanup of deprecated APIs in OsmPrimitive and Way
cleanup of imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java

    r1911 r2017  
    3535import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    3636import org.openstreetmap.josm.gui.MapView;
    37 import org.openstreetmap.josm.gui.OptionPaneUtil;
    3837import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
    3938import org.openstreetmap.josm.gui.dialogs.LayerListPopup;
     
    200199                JColorChooser c = new JColorChooser(getColor(getName()));
    201200                Object[] options = new Object[]{tr("OK"), tr("Cancel"), tr("Default")};
    202                 int answer = OptionPaneUtil.showOptionDialog(
     201                int answer = JOptionPane.showOptionDialog(
    203202                        Main.parent,
    204203                        c,
     
    206205                        JOptionPane.OK_CANCEL_OPTION,
    207206                        JOptionPane.PLAIN_MESSAGE,
     207                        null,
    208208                        options,
    209209                        options[0]
     
    228228            public void actionPerformed(ActionEvent e) {
    229229                if (! AudioPlayer.paused()) {
    230                     OptionPaneUtil.showMessageDialog(
     230                    JOptionPane.showMessageDialog(
    231231                            Main.parent,
    232232                            tr("You need to pause audio at the moment when you hear your synchronization cue."),
     
    238238                AudioMarker recent = AudioMarker.recentlyPlayedMarker();
    239239                if (synchronizeAudioMarkers(recent)) {
    240                     OptionPaneUtil.showMessageDialog(
     240                    JOptionPane.showMessageDialog(
    241241                            Main.parent,
    242242                            tr("Audio synchronized at point {0}.", recent.text),
     
    245245                    );
    246246                } else {
    247                     OptionPaneUtil.showMessageDialog(
     247                    JOptionPane.showMessageDialog(
    248248                            Main.parent,
    249249                            tr("Unable to synchronize in layer being played."),
     
    260260            public void actionPerformed(ActionEvent e) {
    261261                if (! AudioPlayer.paused()) {
    262                     OptionPaneUtil.showMessageDialog(
     262                    JOptionPane.showMessageDialog(
    263263                            Main.parent,
    264264                            tr("You need to have paused audio at the point on the track where you want the marker."),
     
    339339        }
    340340        if (am == null) {
    341             OptionPaneUtil.showMessageDialog(
     341            JOptionPane.showMessageDialog(
    342342                    Main.parent,
    343343                    tr("No existing audio markers in this layer to offset from."),
Note: See TracChangeset for help on using the changeset viewer.