Ignore:
Timestamp:
04/04/19 14:41:47 (5 years ago)
Author:
bln4
Message:

Renamed MailMode action to ToggleBay
Renamed FrameCreator enums to more desirable names (David request)
Created test for altered functionality of FrameCreator as documented below.

FrameCreator now more cleanly obeys the specification of the enum parameter to its constructor. For example, override existing frameset ensures that the old frameset has been deleted (moved to trash).

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

Legend:

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

    r1279 r1280  
    9797         * @throws ParseException
    9898         */
    99         public static void MailMode() throws KeyStoreException, FileNotFoundException, NoSuchAlgorithmException, CertificateException, ClassNotFoundException, SQLException, IOException, ParseException {
     99        public static void ToggleBay() throws KeyStoreException, FileNotFoundException, NoSuchAlgorithmException, CertificateException, ClassNotFoundException, SQLException, IOException, ParseException {
    100100                if (!DisplayController.isMailMode()) {
    101101                        Mail.clear();
  • trunk/src/org/expeditee/auth/gui/MailBay.java

    r1276 r1280  
    9393                if (_creator == null || currentUser != UserSettings.UserName.get()) {
    9494                        currentUser = UserSettings.UserName.get();
    95                         _creator = new FrameCreator(EXPEDITEE_MAIL_FRAMESET_NAME, FrameIO.MAIL_PATH, EXPEDITEE_MAIL_FRAMESET_NAME, FrameCreator.ExistingFramesetOptions.ReobtainStateFromExistingFrames, false);
     95                        _creator = new FrameCreator(EXPEDITEE_MAIL_FRAMESET_NAME, FrameIO.MAIL_PATH, EXPEDITEE_MAIL_FRAMESET_NAME, FrameCreator.ExistingFramesetOptions.AppendAfterLastItem, false);
    9696                }
    9797                               
     
    107107                Mail mail = new Mail(message, message2, options);
    108108                Text t = mail.getPreviewMessage(true);
    109                 _previewMessages.add(t);
    110109                _messages.add(t);
    111110                _creator.addText(timestamp, Colour.BLACK, null, null, false);
     
    113112                        _creator.addItem(line.copy(), false);
    114113                }
     114                t.setLink(_creator.getCurrentFrame().getName());
     115                _previewMessages.add(t);
    115116                _creator.addSpace(SPACING);
    116117                _creator.save();
Note: See TracChangeset for help on using the changeset viewer.