38 } |
38 } |
39 |
39 |
40 /** Constructor */ |
40 /** Constructor */ |
41 protected ErrorDetailsView(InstallerUiEswt aInstallerUi, Composite aParent) |
41 protected ErrorDetailsView(InstallerUiEswt aInstallerUi, Composite aParent) |
42 { |
42 { |
43 super(aInstallerUi, aParent, 8); |
43 super(aInstallerUi, aParent, 8, false, COMMAND_COMPOSITE); |
44 setTitle(InstallerUiTexts.get(InstallerUiTexts.INSTALL_FAILED)); |
44 setTitle(InstallerUiTexts.get(InstallerUiTexts.INSTALL_FAILED)); |
45 setCommands(InstallerUiTexts.get(InstallerUiTexts.OK), null); |
45 setCommands(InstallerUiTexts.get(InstallerUiTexts.OK), null); |
46 } |
46 } |
47 |
47 |
48 /** |
48 /** |
66 /** |
66 /** |
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 /* |
71 // Add title. |
72 // Add title. |
72 Label titleLabel = null; |
73 Label titleLabel = null; |
73 String title = InstallerUiTexts.get(InstallerUiTexts.INSTALL_FAILED); |
74 String title = InstallerUiTexts.get(InstallerUiTexts.INSTALL_FAILED); |
74 if (iInstallerUi.getInstallInfo() != null) |
75 if (iInstallerUi.getInstallInfo() != null) |
75 { |
76 { |
76 titleLabel = createLabel(title, getColumns() - 1, SWT.WRAP); |
77 titleLabel = createLabel( |
|
78 getHeadingComposite(), title, getHeadingColumns()-1, SWT.WRAP); |
77 // Add security icon. |
79 // Add security icon. |
78 iCertificates = iInstallerUi.getInstallInfo().getCertificates(); |
80 iCertificates = iInstallerUi.getInstallInfo().getCertificates(); |
79 createSecurityButton(); |
81 createSecurityButton(getHeadingComposite()); |
80 } |
82 } |
81 else |
83 else |
82 { |
84 { |
83 titleLabel = createLabel(title, getColumns(), SWT.WRAP); |
85 titleLabel = createLabel( |
|
86 getHeadingComposite(), title, getHeadingColumns(), SWT.WRAP); |
84 } |
87 } |
85 setCssId(titleLabel, "heading"); |
88 setCssId(titleLabel, "heading"); |
|
89 */ |
86 |
90 |
87 int horizontalSpan = getColumns(); |
91 int horizontalSpan = getColumns(); |
88 int labelStyle = SWT.WRAP; |
92 int labelStyle = SWT.WRAP; |
89 |
93 |
90 // Begin widgets creation. |
94 // Begin widgets creation. |