Ignore:
Timestamp:
30.08.2009 19:07:24 (3 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/preferences/StyleSources.java

    r1865 r2017  
    44import static org.openstreetmap.josm.tools.I18n.tr; 
    55 
    6 import java.awt.Color; 
    76import java.awt.Component; 
    87import java.awt.GridBagLayout; 
    98import java.awt.event.ActionEvent; 
    109import java.awt.event.ActionListener; 
    11  
    1210import java.io.BufferedReader; 
    1311import java.io.InputStreamReader; 
     
    2523import javax.swing.JList; 
    2624import javax.swing.JOptionPane; 
     25import javax.swing.JPanel; 
    2726import javax.swing.JScrollPane; 
    28 import javax.swing.JPanel; 
    2927import javax.swing.ListCellRenderer; 
    3028 
    3129import org.openstreetmap.josm.Main; 
    32 import org.openstreetmap.josm.gui.OptionPaneUtil; 
    3330import org.openstreetmap.josm.io.MirroredInputStream; 
    3431import org.openstreetmap.josm.tools.GBC; 
     
    140137            iconadd.addActionListener(new ActionListener(){ 
    141138                public void actionPerformed(ActionEvent e) { 
    142                     String source = OptionPaneUtil.showInputDialog( 
     139                    String source = JOptionPane.showInputDialog( 
    143140                            Main.parent, 
    144141                            tr("Icon paths"), 
     
    156153                public void actionPerformed(ActionEvent e) { 
    157154                    if (sourcesList.getSelectedIndex() == -1) { 
    158                         OptionPaneUtil.showMessageDialog( 
     155                        JOptionPane.showMessageDialog( 
    159156                                Main.parent, 
    160157                                tr("Please select the row to edit."), 
     
    163160                        ); 
    164161                    } else { 
    165                         String source = (String)OptionPaneUtil.showInputDialog( 
     162                        String source = (String)JOptionPane.showInputDialog( 
    166163                                Main.parent, 
    167164                                tr("Icon paths"), 
     
    183180                public void actionPerformed(ActionEvent e) { 
    184181                    if (iconsList.getSelectedIndex() == -1) { 
    185                         OptionPaneUtil.showMessageDialog( 
     182                        JOptionPane.showMessageDialog( 
    186183                                Main.parent, tr("Please select the row to delete."), 
    187184                                tr("Warning"), 
     
    197194        add.addActionListener(new ActionListener(){ 
    198195            public void actionPerformed(ActionEvent e) { 
    199                 String source = OptionPaneUtil.showInputDialog( 
     196                String source = JOptionPane.showInputDialog( 
    200197                        Main.parent, 
    201198                        name, 
     
    212209            public void actionPerformed(ActionEvent e) { 
    213210                if (sourcesList.getSelectedIndex() == -1) { 
    214                     OptionPaneUtil.showMessageDialog( 
     211                    JOptionPane.showMessageDialog( 
    215212                            Main.parent, tr("Please select the row to edit."), 
    216213                            tr("Warning"), JOptionPane.WARNING_MESSAGE); 
    217214                } else { 
    218                     String source = (String)OptionPaneUtil.showInputDialog( 
     215                    String source = (String)JOptionPane.showInputDialog( 
    219216                            Main.parent, 
    220217                            name, 
     
    236233            public void actionPerformed(ActionEvent e) { 
    237234                if (sourcesList.getSelectedIndex() == -1) { 
    238                     OptionPaneUtil.showMessageDialog(Main.parent, tr("Please select the row to delete."), 
     235                    JOptionPane.showMessageDialog(Main.parent, tr("Please select the row to delete."), 
    239236                            tr("Warning"), JOptionPane.WARNING_MESSAGE); 
    240237                } else { 
     
    248245            public void actionPerformed(ActionEvent e) { 
    249246                if (sourcesDefaults.getSelectedIndex() == -1) { 
    250                     OptionPaneUtil.showMessageDialog( 
     247                    JOptionPane.showMessageDialog( 
    251248                            Main.parent, tr("Please select the row to copy."), 
    252249                            tr("Warning"), JOptionPane.WARNING_MESSAGE); 
Note: See TracChangeset for help on using the changeset viewer.