Changeset 4459


Ignore:
Timestamp:
2003-06-03T14:05:34+12:00 (21 years ago)
Author:
jmt12
Message:

2030100: With the bug in ModalDialog fixed I can revert this back.

File:
1 edited

Legend:

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

    r4448 r4459  
    1414import org.w3c.dom.*;
    1515
    16 /** A lock file dialog is shown whenever GLI detects an existing lock on a collection it is trying to open. The user can look at the details provided with the dialog, and decide whether to 'steal' the lock or to cancel the loading. While I would have loved to make this one of the modal-but-not-really-modal dialog boxes, it turns out this doesn't work as there is theoretically no parent frame if this dialog is created during GLI startup. So instead I'll use a boring old JDialog and hope that nobody ever asks for a help item to be added to this dialog. */
     16/** A lock file dialog is shown whenever GLI detects an existing lock on a collection it is trying to open. The user can look at the details provided with the dialog, and decide whether to 'steal' the lock or to cancel the loading. */
    1717public class LockFileDialog
    18     extends JDialog {
    19     // extends ModalDialog {
     18    extends ModalDialog {
    2019
    2120    private int choice;
     
    127126
    128127    public int getChoice() {
    129     show();
    130     ///ystem.err.println("Get choice... blocks here.");
    131     ///setVisible(true);
    132     ///ystem.err.println("Dispose recieved, return.");
     128    setVisible(true);
    133129    return choice;
    134130    }
     
    159155        choice = NO_OPTION;
    160156        }
    161         ///ystem.err.println("setVisible(false)");
    162         ///self.setVisible(false);
    163         ///ystem.err.println("dispose()");
    164157        self.dispose();
    165158    }
Note: See TracChangeset for help on using the changeset viewer.