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/AdvancedPreference.java

    r1865 r2017  
    3030 
    3131import org.openstreetmap.josm.Main; 
    32 import org.openstreetmap.josm.gui.OptionPaneUtil; 
    3332import org.openstreetmap.josm.tools.GBC; 
    3433 
     
    219218    private void editPreference(final PreferenceDialog gui, final JTable list) { 
    220219        if (list.getSelectedRowCount() != 1) { 
    221             OptionPaneUtil.showMessageDialog( 
     220            JOptionPane.showMessageDialog( 
    222221                    gui, 
    223222                    tr("Please select the row to edit."), 
     
    227226            return; 
    228227        } 
    229         String v = (String) OptionPaneUtil.showInputDialog( 
     228        String v = (String) JOptionPane.showInputDialog( 
    230229                Main.parent, 
    231230                tr("New value for {0}", model.getValueAt(list.getSelectedRow(), 0)), 
     
    244243    private void removePreference(final PreferenceDialog gui, final JTable list) { 
    245244        if (list.getSelectedRowCount() == 0) { 
    246             OptionPaneUtil.showMessageDialog( 
     245            JOptionPane.showMessageDialog( 
    247246                    gui, 
    248247                    tr("Please select the row to delete."), 
     
    266265        p.add(new JLabel(tr("Value")), GBC.std().insets(0,0,5,0)); 
    267266        p.add(value, GBC.eol().insets(5,0,0,0).fill(GBC.HORIZONTAL)); 
    268         int answer = OptionPaneUtil.showConfirmationDialog( 
     267        int answer = JOptionPane.showConfirmDialog( 
    269268                gui, p, 
    270269                tr("Enter a new key/value pair"), 
Note: See TracChangeset for help on using the changeset viewer.