- Timestamp:
- 07/31/19 12:19:15 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/XRayable.java
r1420 r1423 25 25 import org.expeditee.core.Colour; 26 26 import org.expeditee.core.Point; 27 import org.expeditee.encryption.items.surrogates.Label; 27 28 import org.expeditee.gui.DisplayController; 28 29 … … 41 42 @Override 42 43 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 44 _source.setEncryptionLabel(label); 45 } 46 47 public boolean sourceIsAccessible() { 48 String encryptionLabel = _source.getEncryptionLabel(); 49 if (encryptionLabel == null || encryptionLabel.isEmpty()) { 50 return true; 51 } else { 52 List<String> accessibleLabelsNames = Label.getAccessibleLabelsNames(this.getParent().getBody()); 53 return accessibleLabelsNames.contains(encryptionLabel); 54 } 46 55 } 47 56
Note:
See TracChangeset
for help on using the changeset viewer.