Ignore:
Timestamp:
2009-08-29T15:51:00+02:00 (17 years ago)
Author:
Gubaer
Message:

fixed #2367: panel will be empty when undocked from minimized state
cleanup in Toggle Dialog
new: toggle dialog remember position when detached
new: title in toggle dialog
NOTE: this changeset probably breaks plugins, in particular the validator plugin

File:
1 edited

Legend:

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

    r1991 r2005  
    3131import org.openstreetmap.josm.gui.ExceptionDialogUtil;
    3232import org.openstreetmap.josm.gui.ExtendedDialog;
    33 import org.openstreetmap.josm.gui.OptionPaneUtil;
    3433import org.openstreetmap.josm.gui.OsmPrimitivRenderer;
    3534import org.openstreetmap.josm.gui.PleaseWaitRunnable;
     
    113112            return;
    114113        if (Main.map == null) {
    115             OptionPaneUtil.showMessageDialog(
     114            JOptionPane.showMessageDialog(
    116115                    Main.parent,
    117116                    tr("Nothing to upload. Get some data first."),
     
    124123        ConflictCollection conflicts = Main.map.mapView.getEditLayer().getConflicts();
    125124        if (conflicts !=null && !conflicts.isEmpty()) {
    126             OptionPaneUtil.showMessageDialog(
     125            JOptionPane.showMessageDialog(
    127126                    Main.parent,
    128127                    tr("There are unresolved conflicts. You have to resolve these first."),
     
    130129                    JOptionPane.WARNING_MESSAGE
    131130            );
    132             Main.map.conflictDialog.action.button.setSelected(true);
    133             Main.map.conflictDialog.action.actionPerformed(null);
     131            Main.map.conflictDialog.showDialog();
    134132            return;
    135133        }
     
    152150
    153151        if (add.isEmpty() && update.isEmpty() && delete.isEmpty()) {
    154             OptionPaneUtil.showMessageDialog(
     152            JOptionPane.showMessageDialog(
    155153                    Main.parent,
    156154                    tr("No changes to upload."),
     
    226224        );
    227225        int optionsType = JOptionPane.YES_NO_CANCEL_OPTION;
    228         int ret = OptionPaneUtil.showOptionDialog(
     226        int ret = JOptionPane.showOptionDialog(
    229227                null,
    230228                msg,
     
    232230                optionsType,
    233231                JOptionPane.ERROR_MESSAGE,
     232                null,
    234233                options,
    235234                defaultOption
     
    265264        );
    266265        int optionsType = JOptionPane.YES_NO_OPTION;
    267         int ret = OptionPaneUtil.showOptionDialog(
     266        int ret = JOptionPane.showOptionDialog(
    268267                null,
    269268                msg,
     
    271270                optionsType,
    272271                JOptionPane.ERROR_MESSAGE,
     272                null,
    273273                options,
    274274                defaultOption
     
    385385                        ex.getDisplayMessage()
    386386                );
    387                 OptionPaneUtil.showMessageDialog(
     387                JOptionPane.showMessageDialog(
    388388                        Main.map,
    389389                        msg,
Note: See TracChangeset for help on using the changeset viewer.