Ignore:
Timestamp:
2009-09-03T09:29:22+02:00 (15 years ago)
Author:
stoecker
Message:

fix #3377 - patch by xeen - removed deprecated calls

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java

    r2017 r2032  
    2727 *
    2828 */
    29 public class ConditionalOptionPaneUtil {
     29@Deprecated public class ConditionalOptionPaneUtil {
    3030    static public final int DIALOG_DISABLED_OPTION = Integer.MIN_VALUE;
    3131
  • trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java

    r2027 r2032  
    636636        }
    637637
    638         LinkedList<TaggingPreset> p = new LinkedList<TaggingPreset>();
    639638        presets.removeAll();
    640639        int total = nodes+ways+relations+closedways;
     
    831830        protected void deleteFromRelation(int row) {
    832831            Relation cur = (Relation)membershipData.getValueAt(row, 0);
    833             int result = new ExtendedDialog(Main.parent,
     832
     833            ExtendedDialog ed = new ExtendedDialog(Main.parent,
    834834                    tr("Change relation"),
    835                     tr("Really delete selection from relation {0}?", cur.getDisplayName(DefaultNameFormatter.getInstance())),
    836                     new String[] {tr("Delete from relation"), tr("Cancel")},
    837                     new String[] {"dialogs/delete.png", "cancel.png"}).getValue();
    838 
    839             if(result != 1)
     835                    new String[] {tr("Delete from relation"), tr("Cancel")});
     836            ed.setButtonIcons(new String[] {"dialogs/delete.png", "cancel.png"});
     837            ed.setContent(tr("Really delete selection from relation {0}?", cur.getDisplayName(DefaultNameFormatter.getInstance())));
     838            ed.showDialog();
     839
     840            if(ed.getValue() != 1)
    840841                return;
    841842
Note: See TracChangeset for help on using the changeset viewer.