javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt2/CertificateDetailsView.java
branchRCL_3
changeset 25 9ac0a0a7da70
parent 24 0fd27995241b
child 48 e0d6e9bd3ca7
equal deleted inserted replaced
24:0fd27995241b 25:9ac0a0a7da70
    91                 }),
    91                 }),
    92             horizontalSpan, labelStyle);
    92             horizontalSpan, labelStyle);
    93         createLabel("", horizontalSpan, labelStyle);
    93         createLabel("", horizontalSpan, labelStyle);
    94 
    94 
    95         // Add warning label.
    95         // Add warning label.
       
    96         String appName = "";
       
    97         if (iInstallerUi.getInstallInfo() != null)
       
    98         {
       
    99             appName = iInstallerUi.getInstallInfo().getName();
       
   100         }
    96         Label warningLabel = createLabel(
   101         Label warningLabel = createLabel(
    97                                  InstallerUiTexts.get(InstallerUiTexts.NOT_CERTIFIED_WARNING),
   102                                  InstallerUiTexts.get(InstallerUiTexts.NOT_CERTIFIED_INFO,
       
   103                                                       new String[] { appName }),
    98                                  horizontalSpan, labelStyle);
   104                                  horizontalSpan, labelStyle);
    99 
   105 
   100     }
   106     }
   101 
   107 
   102     /**
   108     /**
   108         int labelStyle = SWT.WRAP;
   114         int labelStyle = SWT.WRAP;
   109 
   115 
   110         // Add title label.
   116         // Add title label.
   111         Label detailsLabel = createLabel
   117         Label detailsLabel = createLabel
   112                              (InstallerUiTexts.get
   118                              (InstallerUiTexts.get
   113                               (InstallerUiTexts.CERTIFICATE_INFO_FOR_APP),
   119                               (InstallerUiTexts.CERTIFICATE_TITLE),
   114                               horizontalSpan, labelStyle);
   120                               horizontalSpan, labelStyle);
   115         detailsLabel.setFont(iInstallerUi.getBoldFont());
   121         detailsLabel.setFont(iInstallerUi.getBoldFont());
   116 
   122 
   117         SigningCertificate certificate = iCerts[iCertIndex];
   123         SigningCertificate certificate = iCerts[iCertIndex];
   118 
   124 
   132                              (InstallerUiTexts.get
   138                              (InstallerUiTexts.get
   133                               (InstallerUiTexts.SUBJECT,
   139                               (InstallerUiTexts.SUBJECT,
   134                                new String[] { certificate.getFormattedSubject() }),
   140                                new String[] { certificate.getFormattedSubject() }),
   135                               horizontalSpan, labelStyle);
   141                               horizontalSpan, labelStyle);
   136 
   142 
       
   143         Label organizationLabel = createLabel
       
   144                              (InstallerUiTexts.get
       
   145                               (InstallerUiTexts.ORGANIZATION,
       
   146                                new String[] { certificate.getOrganization() }),
       
   147                               horizontalSpan, labelStyle);
       
   148 
   137         Label validFromLabel = createLabel
   149         Label validFromLabel = createLabel
   138                                (InstallerUiTexts.get
   150                                (InstallerUiTexts.get
   139                                 (InstallerUiTexts.VALID_FROM,
   151                                 (InstallerUiTexts.VALID_FROM,
   140                                  new Object[] { certificate.getValidFrom() }),
   152                                  new Object[] { certificate.getValidFrom() }),
   141                                 horizontalSpan, labelStyle);
   153                                 horizontalSpan, labelStyle);