javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt2/ErrorDetailsView.java
changeset 49 35baca0e7a2e
parent 26 dc7c549001d5
child 83 26b2b12093af
child 87 1627c337e51e
equal deleted inserted replaced
35:85266cc22c7f 49:35baca0e7a2e
    67      * This method is called once before view is opened.
    67      * This method is called once before view is opened.
    68      */
    68      */
    69     protected void createView()
    69     protected void createView()
    70     {
    70     {
    71         // Add title.
    71         // Add title.
       
    72         Label titleLabel = null;
    72         String title = InstallerUiTexts.get(InstallerUiTexts.INSTALL_FAILED);
    73         String title = InstallerUiTexts.get(InstallerUiTexts.INSTALL_FAILED);
    73         if (iInstallerUi.getInstallInfo() != null)
    74         if (iInstallerUi.getInstallInfo() != null)
    74         {
    75         {
    75             Label titleLabel = createLabel(title, getColumns() - 1, SWT.WRAP);
    76             titleLabel = createLabel(title, getColumns() - 1, SWT.WRAP);
    76             titleLabel.setFont(iInstallerUi.getBoldFont());
       
    77             // Add security icon.
    77             // Add security icon.
    78             iCertificates = iInstallerUi.getInstallInfo().getCertificates();
    78             iCertificates = iInstallerUi.getInstallInfo().getCertificates();
    79             createSecurityButton();
    79             createSecurityButton();
    80         }
    80         }
    81         else
    81         else
    82         {
    82         {
    83             Label titleLabel = createLabel(title, getColumns(), SWT.WRAP);
    83             titleLabel = createLabel(title, getColumns(), SWT.WRAP);
    84             titleLabel.setFont(iInstallerUi.getBoldFont());
       
    85         }
    84         }
       
    85         setCssId(titleLabel, "heading");
    86 
    86 
    87         int horizontalSpan = getColumns();
    87         int horizontalSpan = getColumns();
    88         int labelStyle = SWT.WRAP;
    88         int labelStyle = SWT.WRAP;
    89 
    89 
    90         // Begin widgets creation.
    90         // Begin widgets creation.
    91         Label errorLabel = createLabel(
    91         Label errorLabel = createLabel(
    92             iException.getDetailedMessage(), horizontalSpan, labelStyle);
    92             iException.getDetailedMessage(), horizontalSpan, labelStyle);
       
    93         setCssId(errorLabel, "errorLabel");
    93         // End of widgets creation.
    94         // End of widgets creation.
    94     }
    95     }
    95 
    96 
    96     /**
    97     /**
    97      * This method is called after user has answered
    98      * This method is called after user has answered