javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt2/InstallConfirmationView.java
equal
deleted
inserted
replaced
104 * This method is called once before view is opened. |
104 * This method is called once before view is opened. |
105 */ |
105 */ |
106 protected void createView() |
106 protected void createView() |
107 { |
107 { |
108 // Add header. |
108 // Add header. |
109 String title = InstallerUiTexts.get(InstallerUiTexts.INSTALL_QUERY); |
109 addHeader(null, iInstallInfo, null); |
110 if (iInstallInfo != null) |
|
111 { |
|
112 if (iInstallInfo.getOldVersion() != null) |
|
113 { |
|
114 title = InstallerUiTexts.get(InstallerUiTexts.UPDATE_QUERY); |
|
115 } |
|
116 } |
|
117 addHeader(title, iInstallInfo, null); |
|
118 |
110 |
119 GridData gridData = null; |
111 GridData gridData = null; |
120 int horizontalSpan = getColumns(); |
112 int horizontalSpan = getColumns(); |
121 int labelStyle = SWT.WRAP; |
113 int labelStyle = SWT.WRAP; |
122 |
114 |
124 int[] driveIds = iInstallInfo.getDriveIds(); |
116 int[] driveIds = iInstallInfo.getDriveIds(); |
125 if (driveIds != null && driveIds.length > 0) |
117 if (driveIds != null && driveIds.length > 0) |
126 { |
118 { |
127 // Add installation drive selector. |
119 // Add installation drive selector. |
128 iDriveSelector = new Combo(getComposite(), SWT.READ_ONLY); |
120 iDriveSelector = new Combo(getComposite(), SWT.READ_ONLY); |
|
121 setCssId(iDriveSelector, "driveSelector"); |
129 gridData = new GridData(GridData.FILL_HORIZONTAL); |
122 gridData = new GridData(GridData.FILL_HORIZONTAL); |
130 gridData.horizontalSpan = horizontalSpan; |
123 gridData.horizontalSpan = horizontalSpan; |
131 iDriveSelector.setLayoutData(gridData); |
124 iDriveSelector.setLayoutData(gridData); |
132 int[] driveTypes = iInstallInfo.getDriveTypes(); |
125 int[] driveTypes = iInstallInfo.getDriveTypes(); |
133 long[] driveFreeSpaces = iInstallInfo.getDriveFreeSpaces(); |
126 long[] driveFreeSpaces = iInstallInfo.getDriveFreeSpaces(); |
153 |
146 |
154 if (iInstallInfo.getRetainData() != null) |
147 if (iInstallInfo.getRetainData() != null) |
155 { |
148 { |
156 // Add retain user data option. |
149 // Add retain user data option. |
157 iRetainDataButton = new Button(getComposite(), SWT.CHECK); |
150 iRetainDataButton = new Button(getComposite(), SWT.CHECK); |
|
151 setCssId(iRetainDataButton, "retainDataButton"); |
158 gridData = new GridData(GridData.FILL_HORIZONTAL); |
152 gridData = new GridData(GridData.FILL_HORIZONTAL); |
159 gridData.horizontalSpan = horizontalSpan; |
153 gridData.horizontalSpan = horizontalSpan; |
160 iRetainDataButton.setLayoutData(gridData); |
154 iRetainDataButton.setLayoutData(gridData); |
161 iRetainDataButton.setSelection |
155 iRetainDataButton.setSelection |
162 (iInstallInfo.getRetainData().booleanValue()); |
156 (iInstallInfo.getRetainData().booleanValue()); |