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 |