javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt2/InstallConfirmationView.java
branchRCL_3
changeset 25 9ac0a0a7da70
parent 24 0fd27995241b
child 35 85266cc22c7f
child 60 6c158198356e
equal deleted inserted replaced
24:0fd27995241b 25:9ac0a0a7da70
    57     /** Constructor */
    57     /** Constructor */
    58     protected InstallConfirmationView(
    58     protected InstallConfirmationView(
    59         InstallerUiEswt aInstallerUi, Composite aParent)
    59         InstallerUiEswt aInstallerUi, Composite aParent)
    60     {
    60     {
    61         super(aInstallerUi, aParent, 8);
    61         super(aInstallerUi, aParent, 8);
    62         setTitle(InstallerUiTexts.get(InstallerUiTexts.INSTALL));
    62         setTitle(InstallerUiTexts.get(InstallerUiTexts.INSTALLING));
    63         setCommands(InstallerUiTexts.get(InstallerUiTexts.OK),
    63         setCommands(InstallerUiTexts.get(InstallerUiTexts.OK),
    64                     InstallerUiTexts.get(InstallerUiTexts.CANCEL));
    64                     InstallerUiTexts.get(InstallerUiTexts.CANCEL));
    65     }
    65     }
    66 
    66 
    67     /**
    67     /**
   105      * This method is called once before view is opened.
   105      * This method is called once before view is opened.
   106      */
   106      */
   107     protected void createView()
   107     protected void createView()
   108     {
   108     {
   109         // Add header.
   109         // Add header.
   110         String title = "Install?";
   110         String title = InstallerUiTexts.get(InstallerUiTexts.INSTALL_QUERY);
   111         if (iInstallInfo != null)
   111         if (iInstallInfo != null)
   112         {
   112         {
   113             if (iInstallInfo.getOldVersion() != null)
   113             if (iInstallInfo.getOldVersion() != null)
   114             {
   114             {
   115                 title = "Update?";
   115                 title = InstallerUiTexts.get(InstallerUiTexts.UPDATE_QUERY);
   116             }
   116             }
   117         }
   117         }
   118         addHeader(title, iInstallInfo, null);
   118         addHeader(title, iInstallInfo, null);
   119 
   119 
   120         GridData gridData = null;
   120         GridData gridData = null;
   124         // Begin user selection widgets creation.
   124         // Begin user selection widgets creation.
   125         int[] driveIds = iInstallInfo.getDriveIds();
   125         int[] driveIds = iInstallInfo.getDriveIds();
   126         if (driveIds != null && driveIds.length > 0)
   126         if (driveIds != null && driveIds.length > 0)
   127         {
   127         {
   128             // Add installation drive selector.
   128             // Add installation drive selector.
   129             //Label drivesLabel = createLabel(
       
   130             //                        InstallerUiTexts.get(InstallerUiTexts.INSTALL_TO_DRIVE),
       
   131             //                        horizontalSpan, labelStyle);
       
   132             iDriveSelector = new Combo(getComposite(), SWT.READ_ONLY);
   129             iDriveSelector = new Combo(getComposite(), SWT.READ_ONLY);
   133             gridData = new GridData(GridData.FILL_HORIZONTAL);
   130             gridData = new GridData(GridData.FILL_HORIZONTAL);
   134             gridData.horizontalSpan = horizontalSpan;
   131             gridData.horizontalSpan = horizontalSpan;
   135             iDriveSelector.setLayoutData(gridData);
   132             iDriveSelector.setLayoutData(gridData);
   136             int[] driveTypes = iInstallInfo.getDriveTypes();
   133             int[] driveTypes = iInstallInfo.getDriveTypes();