Changeset 1281 for trunk


Ignore:
Timestamp:
04/04/19 15:01:45 (5 years ago)
Author:
bln4
Message:

Implemented band-aid to fix authentication mode not saving last edits on exit (and I imagine other problems).

The issue was that Browser._theBrowser was not being set because the Browser.init method was being highjacked by Authenticator. Authenticator now extends Browser, calls a newly minted (mostly) empty super constructor and sets Browser._theBrowser to itself. Once commits concerning how Expeditee startup has been made this can be tidied up.

Location:
trunk/src/org/expeditee
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/auth/Authenticator.java

    r1279 r1281  
    6969import org.ngikm.cryptography.CryptographyConstants;
    7070
    71 public final class Authenticator implements CryptographyConstants {
     71public final class Authenticator extends Browser implements CryptographyConstants {
    7272       
    7373        // The frame number of the frame containing the current authenticated users public key.
     
    9191       
    9292        private Authenticator() throws KeyStoreException, FileNotFoundException, IOException, NoSuchAlgorithmException, CertificateException, ClassNotFoundException, SQLException {
    93                 System.out.println("Running Expeditee in Authentication Mode.");
     93                super("Authentication");
    9494                UserSettings.setupDefaultFolders();
    9595                       
     
    136136                // class load database classes
    137137                Class.forName("org.sqlite.JDBC");
     138                _theBrowser = this;
    138139        }
    139140
  • trunk/src/org/expeditee/gui/Browser.java

    r1270 r1281  
    237237                return _initComplete;
    238238        }
     239       
     240        protected Browser(String mode) {
     241                System.out.println("Running Expeditee in " + mode + " mode.");
     242        }
    239243
    240244        protected Browser() {
Note: See TracChangeset for help on using the changeset viewer.