Ignore:
Timestamp:
12/03/19 15:29:07 (4 years ago)
Author:
bnemhaus
Message:

Added label existance check for when setting encryption label on a frame.

Added padlock icon on items that are encrypted.

Added key icon on items with KeyImage property set to 'PartialKey' or 'FullKey'. This will hopefully soon transformed into automatically setting these properties on key items that are on the secrets frame. The property should not be set-able by user once fully implemented and is only atm for debug purposes.

File:
1 edited

Legend:

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

    r1460 r1477  
    4747import org.expeditee.encryption.items.EncryptionPermissionTriple;
    4848import org.expeditee.encryption.items.surrogates.Label;
     49import org.expeditee.encryption.items.surrogates.Label.LabelInfo;
     50import org.expeditee.encryption.items.surrogates.Label.LabelResult;
    4951import org.expeditee.gio.EcosystemManager;
    5052import org.expeditee.gio.gesture.Gesture;
     
    29862988       
    29872989        public void setEncryptionLabel(String label) {
     2990                LabelInfo labelResult = Label.getLabel(label);
     2991                boolean isProfileOrNone = label.equals("Profile") || label.equals("None");
     2992                if (!isProfileOrNone && !labelResult.is(LabelResult.SuccessResolveLabelToKey)) {
     2993                        MessageBay.displayMessage(labelResult.toString());
     2994                        this._encryptionLabel = null;
     2995                        return;
     2996                }
     2997               
    29882998                this.setChanged(true);
    29892999                _encryptionLabel = label;
Note: See TracChangeset for help on using the changeset viewer.