Ignore:
Timestamp:
2009-09-06T23:07:33+02:00 (15 years ago)
Author:
Gubaer
Message:

new: rewrite of CombineWay action
new: conflict resolution dialog for CombineWay, including conflicts for different relation memberships
cleanup: cleanup in OsmReader, reduces memory footprint and reduces parsing time
cleanup: made most of the public fields in OsmPrimitive @deprecated, added accessors and changed the code
cleanup: replaced usages of @deprecated constructors for ExtendedDialog
fixed #3208: Combine ways brokes relation order

WARNING: this changeset touches a lot of code all over the code base. "latest" might become slightly unstable in the next days. Also experience incompatibility issues with plugins in the next few days.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DiskAccessAction.java

    r2029 r2070  
    5050        if (!open) {
    5151            File file = fc.getSelectedFile();
    52             if (file == null || (file.exists() && 1 !=
    53                 new ExtendedDialog(Main.parent,
     52            if (file != null && file.exists()) {
     53                ExtendedDialog dialog = new ExtendedDialog(
     54                        Main.parent,
    5455                        tr("Overwrite"),
    55                         tr("File exists. Overwrite?"),
    56                         new String[] {tr("Overwrite"), tr("Cancel")},
    57                         new String[] {"save_as.png", "cancel.png"}).getValue()))
    58                 return null;
     56                        new String[] {tr("Overwrite"), tr("Cancel")}
     57                );
     58                dialog.setContent(tr("File exists. Overwrite?"));
     59                dialog.setButtonIcons(new String[] {"save_as.png", "cancel.png"});
     60                if (dialog.getValue() != 1)
     61                    return null;
     62            }
    5963        }
    6064
Note: See TracChangeset for help on using the changeset viewer.