Changeset 3016 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2010-02-18T20:52:48+01:00 (14 years ago)
Author:
bastiK
Message:

pop up the conflict dialog when a conflict has been detected

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

Legend:

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

    r2950 r3016  
    183183                JOptionPane.WARNING_MESSAGE
    184184        );
     185        Main.map.conflictDialog.unfurlDialog();
     186        Main.map.repaint();
    185187    }
    186188
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r2969 r3016  
    187187
    188188    /**
     189     * Changes the state of the dialog such that the user can see the content
     190     * and takes care of the panel reconstruction.
     191     */
     192    public void unfurlDialog()
     193    {
     194        if (isDialogInDefaultView())
     195            return;
     196        if (isDialogInCollapsedView()) {
     197            expand();
     198            dialogsPanel.reconstruct(Action.COLLAPSED_TO_DEFAULT, this);
     199        } else if (!isDialogShowing()) {
     200            showDialog();
     201            if (isDocked && isCollapsed) {
     202                expand();
     203            }
     204            if (isDocked) {
     205                dialogsPanel.reconstruct(Action.INVISIBLE_TO_DEFAULT, this);
     206            }
     207        }
     208    }
     209
     210    /**
    189211     * Hides the dialog
    190212     */
     
    343365                        @Override
    344366                        public void mouseClicked(MouseEvent e) {
    345                             // toggleExpandedState();
     367                            // toggleExpandedState
    346368                            if (isCollapsed) {
    347369                                expand();
Note: See TracChangeset for help on using the changeset viewer.