Ignore:
Timestamp:
2012-06-24T19:14:38+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #4493, fix #7750: conflict dialog, nodes and members tab: allow selection via double-click, allow zoom via contexual menu, plus various fix in EDT violations

File:
1 edited

Legend:

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

    r5275 r5297  
    7878import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;
    7979import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     80import org.openstreetmap.josm.gui.util.GuiHelper;
    8081import org.openstreetmap.josm.tools.DateUtils;
    8182import org.openstreetmap.josm.tools.FilteredCollection;
     
    386387        );
    387388
    388         StringBuffer sb = new StringBuffer();
     389        final StringBuffer sb = new StringBuffer();
    389390        sb.append("<html>").append(msg1).append("</html>");
    390391        if (numNewConflicts > 0) {
    391             ButtonSpec[] options = new ButtonSpec[] {
     392            final ButtonSpec[] options = new ButtonSpec[] {
    392393                    new ButtonSpec(
    393394                            tr("OK"),
     
    397398                    )
    398399            };
    399             HelpAwareOptionPane.showOptionDialog(
    400                     Main.parent,
    401                     sb.toString(),
    402                     tr("Conflicts detected"),
    403                     JOptionPane.WARNING_MESSAGE,
    404                     null, /* no icon */
    405                     options,
    406                     options[0],
    407                     ht("/Concepts/Conflict#WarningAboutDetectedConflicts")
    408             );
    409             Main.map.conflictDialog.unfurlDialog();
    410             Main.map.repaint();
     400            GuiHelper.runInEDT(new Runnable() {
     401                @Override
     402                public void run() {
     403                    HelpAwareOptionPane.showOptionDialog(
     404                            Main.parent,
     405                            sb.toString(),
     406                            tr("Conflicts detected"),
     407                            JOptionPane.WARNING_MESSAGE,
     408                            null, /* no icon */
     409                            options,
     410                            options[0],
     411                            ht("/Concepts/Conflict#WarningAboutDetectedConflicts")
     412                    );
     413                    Main.map.conflictDialog.unfurlDialog();
     414                    Main.map.repaint();
     415                }
     416            });
    411417        }
    412418    }
Note: See TracChangeset for help on using the changeset viewer.