javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt2/ConfirmationViewBase.java
changeset 48 e0d6e9bd3ca7
parent 26 dc7c549001d5
child 67 63b81d807542
equal deleted inserted replaced
47:f40128debb5d 48:e0d6e9bd3ca7
    98                 {
    98                 {
    99                     createView();
    99                     createView();
   100                     createCommands();
   100                     createCommands();
   101                     setDefaultCommand();
   101                     setDefaultCommand();
   102                 }
   102                 }
       
   103                 iInstallerUi.loadCss();
   103                 setVisible(true);
   104                 setVisible(true);
   104                 iInstallerUi.unhide();
   105                 iInstallerUi.unhide();
   105             }
   106             }
   106         });
   107         });
   107         // The UI thread must not be blocked. Let's wait for the answer
   108         // The UI thread must not be blocked. Let's wait for the answer
   182         }
   183         }
   183 
   184 
   184         if (iOkText != null)
   185         if (iOkText != null)
   185         {
   186         {
   186             iOkCommand = new Button(getCommandComposite(), SWT.PUSH);
   187             iOkCommand = new Button(getCommandComposite(), SWT.PUSH);
       
   188             if (iCancelText != null)
       
   189             {
       
   190                 setCssId(iOkCommand, "softKeyButton");
       
   191             }
       
   192             else
       
   193             {
       
   194                 setCssId(iOkCommand, "softKeyButtonWide");
       
   195             }
   187             GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
   196             GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
   188             gridData.horizontalSpan = horizontalSpan;
   197             gridData.horizontalSpan = horizontalSpan;
   189             iOkCommand.setLayoutData(gridData);
   198             iOkCommand.setLayoutData(gridData);
   190             iOkCommand.addDisposeListener(new DisposeListener()
   199             iOkCommand.addDisposeListener(new DisposeListener()
   191             {
   200             {
   228         }
   237         }
   229 
   238 
   230         if (iCancelText != null)
   239         if (iCancelText != null)
   231         {
   240         {
   232             iCancelCommand = new Button(getCommandComposite(), SWT.PUSH);
   241             iCancelCommand = new Button(getCommandComposite(), SWT.PUSH);
       
   242             if (iOkText != null)
       
   243             {
       
   244                 setCssId(iCancelCommand, "softKeyButton");
       
   245             }
       
   246             else
       
   247             {
       
   248                 setCssId(iCancelCommand, "softKeyButtonWide");
       
   249             }
   233             GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
   250             GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
   234             gridData.horizontalSpan = horizontalSpan;
   251             gridData.horizontalSpan = horizontalSpan;
   235             iCancelCommand.setLayoutData(gridData);
   252             iCancelCommand.setLayoutData(gridData);
   236             iCancelCommand.addDisposeListener(new DisposeListener()
   253             iCancelCommand.addDisposeListener(new DisposeListener()
   237             {
   254             {