Changeset 1420 for trunk


Ignore:
Timestamp:
07/25/19 11:44:16 (5 years ago)
Author:
bln4
Message:

Injecting an encryption label into an XRayable Item now injects that encryption label into the source item as well.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/encryption/io/EncryptedExpWriter.java

    r1418 r1420  
    135135       
    136136        protected void writeClass(Item toWrite) throws IOException {
    137                 if (toWrite instanceof Text && toWrite.getText().equals("Content for Label Two")) {
    138                         System.err.println("EncryptedExpWriter::writeClass::breakpoint");
    139                 } else if (toWrite instanceof Text && toWrite.getText().equals("Encrypted") && toWrite.getPrimary().getText().equals("Content for Label One")) {
    140                         System.err.println("EncryptedExpWriter::writeClass::breakpoint");
    141                 }
    142                
    143137                LinkedHashMap<Character,Method> itemTags = new LinkedHashMap<Character, Method>(getItemCharTags());
    144138                LinkedHashMap<String,Method> itemTagsExt = new LinkedHashMap<String, Method>(getItemStrTags());
  • trunk/src/org/expeditee/items/Picture.java

    r1143 r1420  
    3636import org.expeditee.core.Stroke;
    3737import org.expeditee.core.bounds.AxisAlignedBoxBounds;
    38 import org.expeditee.core.bounds.CombinationBoxBounds;
    3938import org.expeditee.core.bounds.PolygonBounds;
    4039import org.expeditee.gio.EcosystemManager;
    4140import org.expeditee.gio.GraphicsManager;
    4241import org.expeditee.gui.DisplayController;
    43 import org.expeditee.gui.FrameGraphics;
    4442import org.expeditee.gui.FrameIO;
    4543import org.expeditee.gui.FrameUtils;
  • trunk/src/org/expeditee/items/XRayable.java

    r1415 r1420  
    3939        }
    4040       
     41        @Override
     42        public void setEncryptionLabel(String label) {
     43                // When the encryption label is set on a XRayable is sets it on its source as well.
     44                super.setEncryptionLabel(label);
     45                _source.setEncryptionLabel(label);
     46        }
     47       
    4148        public Collection<Item> getItemsToSave() {
    4249                Collection<Item> toSave = new LinkedList<Item>();
Note: See TracChangeset for help on using the changeset viewer.