Ignore:
Timestamp:
06/25/19 13:57:37 (5 years ago)
Author:
bln4
Message:

Changed surrogates to work the way discussed with David. EncryptedExpReader/Writer updated to work with this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/Frame.java

    r1408 r1413  
    25542554         * @return the list of items to be saved to a text file
    25552555         */
    2556         public List<Item> getItemsToSave()
    2557         {
     2556        public List<Item> getItemsToSave() {
    25582557                if (!_sorted) {
    25592558                        Collections.sort(_body);
     
    25952594
    25962595                return toSave;
     2596        }
     2597       
     2598        public List<Item> getSurrogateItemsToSave() {
     2599                List<Item> surrogates = new ArrayList<Item>();
     2600                _body.forEach(item -> surrogates.addAll(item.getSurrogates()));
     2601                return surrogates;
    25972602        }
    25982603
Note: See TracChangeset for help on using the changeset viewer.