if (getMessageUI() != null){
//Liao-
MessageUI msgUI = getMessageUI();
CryptoStatusDisplay cryptoLCD = msgUI.getCryptoStatusDisplay();
VariableBundle vars = Pooka.getResources();
String status = "(Signature Status)";
switch(cryptoLCD.getSignatureStatus()){
case CryptoStatusDisplay.UNCHECKED_SIGNED:
status = vars.getProperty("CryptoPanel.uncheckedSigned.Tooltip", "Signed");
break;
case CryptoStatusDisplay.SIGNATURE_BAD:
status = vars.getProperty("CryptoPanel.signatureBad.Tooltip", "Signature Failed Verification by Key");
break;
case CryptoStatusDisplay.SIGNATURE_VERIFIED:
status = vars.getProperty("CryptoPanel.signatureVerified.Tooltip", "Signature Verified with Key");
break;
case CryptoStatusDisplay.SIGNATURE_FAILED_VERIFICATION:
status = vars.getProperty("CryptoPanel.signatureFailedVerification.Tooltip", "Unable to Verfify Signature");
break;
}
//Liao+
getMessageUI().showMessageDialog(status, "Signature Status");