Ignore:
Timestamp:
2004-01-27T16:35:34+13:00 (20 years ago)
Author:
jmt12
Message:

More modifications to mirroring including testing for a valid version of Wget (and complaining if its missing or it is old) and rearranging buttons on the GProgressBar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/ModalDialog.java

    r6539 r6622  
    4949    public ModalDialog() {
    5050    super((Frame)null, "", false);
    51     Gatherer.current_modal = this;
    5251    }
    5352
     
    5756    public ModalDialog(Dialog parent) {
    5857    super(parent, "", false);
    59     Gatherer.current_modal = this;
    6058    }
    6159
     
    6765    super(parent, "", false);
    6866    this.modal = modal;
    69     Gatherer.current_modal = this;
    7067    }
    7168   
     
    7774    super (parent, title, false);
    7875    this.modal = false;
    79     Gatherer.current_modal = this;
    8076    }
    8177
     
    8884    super (parent, title, false);
    8985    this.modal = modal;
    90     Gatherer.current_modal = this;
    9186    }
    9287
     
    9691    public ModalDialog(Frame parent) {
    9792    super(parent, "", false);
    98     Gatherer.current_modal = this;
    9993    }
    10094
     
    106100    super(parent, "", false);
    107101    this.modal = modal;
    108     Gatherer.current_modal = this;
    109102    }
    110103   
     
    115108    public ModalDialog(Frame parent, String title) {
    116109    super (parent, title, false);
    117     Gatherer.current_modal = this;
    118110    }
    119111
     
    126118    super (parent, title, false);
    127119    this.modal = modal;
    128     Gatherer.current_modal = this;
    129120    }
    130121
    131122    public void dispose() {
    132     Gatherer.current_modal = null;
    133123    super.dispose();
     124    }
     125
     126    /** Ensures the current dialog is visible. */
     127    public void makeVisible() {
     128    super.setVisible(true);
    134129    }
    135130
     
    142137    super.setVisible (visible);
    143138    if (modal && visible) {
     139        Gatherer.current_modal = this;
    144140        try {
    145141        if (SwingUtilities.isEventDispatchThread ()) {
     
    180176    }
    181177    else if(modal && !visible && waiting) {
     178        Gatherer.current_modal = null;
    182179        ///ystem.err.println("Hiding dialog. Tree lock is: " + getTreeLock());
    183180        synchronized(getTreeLock()) {
     
    187184    }
    188185    else if(modal && !waiting) {
     186        Gatherer.current_modal = null;
    189187        ///ystem.err.println("Modal Dialog is not currently waiting.");
    190188    }
Note: See TracChangeset for help on using the changeset viewer.