Ignore:
Timestamp:
2006-04-25T00:11:38+02:00 (20 years ago)
Author:
imi
Message:
  • added Applet version of JOSM (unfinished)
  • fixed display bug if --no-fullscreen and --geometry was specified
File:
1 edited

Legend:

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

    r92 r98  
    4343                //TODO: Remove this in later versions (temporary only)
    4444                if (osmDataServer.endsWith("/0.2") || osmDataServer.endsWith("/0.2/")) {
    45                         int answer = JOptionPane.showConfirmDialog(Main.main,
     45                        int answer = JOptionPane.showConfirmDialog(Main.parent,
    4646                                        "You seem to have an outdated server entry in your preferences.\n" +
    4747                                        "\n" +
     
    5656                }
    5757
    58                 if (!Main.main.getMapFrame().conflictDialog.conflicts.isEmpty()) {
    59                         JOptionPane.showMessageDialog(Main.main, "There are unresolved conflicts. You have to resolve these first.");
    60                         Main.main.getMapFrame().conflictDialog.action.button.setSelected(true);
    61                         Main.main.getMapFrame().conflictDialog.action.actionPerformed(null);
     58                if (!Main.map.conflictDialog.conflicts.isEmpty()) {
     59                        JOptionPane.showMessageDialog(Main.parent, "There are unresolved conflicts. You have to resolve these first.");
     60                        Main.map.conflictDialog.action.button.setSelected(true);
     61                        Main.map.conflictDialog.action.actionPerformed(null);
    6262                        return;
    6363                }
     
    9090                        }
    9191                        @Override protected void finish() {
    92                                 Main.main.getMapFrame().mapView.editLayer().cleanData(server.processed, !add.isEmpty());
     92                                Main.main.editLayer().cleanData(server.processed, !add.isEmpty());
    9393                        }
    9494                        @Override protected void cancel() {
     
    108108        private boolean displayUploadScreen(Collection<OsmPrimitive> add, Collection<OsmPrimitive> update, Collection<OsmPrimitive> delete) {
    109109                if (add.isEmpty() && update.isEmpty() && delete.isEmpty()) {
    110                         JOptionPane.showMessageDialog(Main.main, "No changes to upload.");
     110                        JOptionPane.showMessageDialog(Main.parent, "No changes to upload.");
    111111                        return false;
    112112                }
     
    140140                }
    141141
    142                 return JOptionPane.showConfirmDialog(Main.main, p, "Upload this changes?",
     142                return JOptionPane.showConfirmDialog(Main.parent, p, "Upload this changes?",
    143143                                JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
    144144        }
Note: See TracChangeset for help on using the changeset viewer.