sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.wizards/src/com/nokia/carbide/cpp/internal/pi/wizards/ui/NewPIWizardPageConfigSelectorTask.java
changeset 12 ae255c9aa552
parent 2 b9ab3b238396
equal deleted inserted replaced
11:5b9d4d8641ce 12:ae255c9aa552
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 package com.nokia.carbide.cpp.internal.pi.wizards.ui;
    18 package com.nokia.carbide.cpp.internal.pi.wizards.ui;
    19 
    19 
       
    20 import org.eclipse.jface.wizard.WizardDialog;
    20 import org.eclipse.swt.SWT;
    21 import org.eclipse.swt.SWT;
       
    22 import org.eclipse.swt.events.SelectionAdapter;
    21 import org.eclipse.swt.events.SelectionEvent;
    23 import org.eclipse.swt.events.SelectionEvent;
    22 import org.eclipse.swt.events.SelectionListener;
    24 import org.eclipse.swt.events.SelectionListener;
    23 import org.eclipse.swt.graphics.Image;
    25 import org.eclipse.swt.graphics.Image;
    24 import org.eclipse.swt.layout.GridData;
    26 import org.eclipse.swt.layout.GridData;
    25 import org.eclipse.swt.layout.GridLayout;
    27 import org.eclipse.swt.layout.GridLayout;
    38 extends NewPIWizardPage
    40 extends NewPIWizardPage
    39 implements INewPIWizardSettings
    41 implements INewPIWizardSettings
    40 {
    42 {
    41 
    43 
    42 	// control
    44 	// control
    43 	private Composite composite = null;
    45 	private transient Composite composite = null;
    44 	private Group optionGroup = null;
    46 	private transient Group optionGroup = null;
    45 	private Composite appComposite = null;
    47 	private transient Composite appComposite = null;
    46 	private Composite appLabelComposite = null;
    48 	private transient Composite appLabelComposite = null;
    47 	private Button buttonApp = null;
    49 	private transient Button buttonApp = null;
    48 	private Label labelAppTitle = null;
    50 	private transient Label labelAppTitle = null;
    49 	private Label labelApp2 = null;
    51 	private transient Label labelApp2 = null;
    50 	private Composite romAppComposite = null;
    52 	private transient Composite romAppComposite = null;
    51 	private Composite romAppLabelComposite = null;
    53 	private transient Composite romAppLabelComposite = null;
    52 	private Button buttonRomApp = null;
    54 	private transient Button buttonRomApp = null;
    53 	private Label labelRomAppTitle = null;
    55 	private transient Label labelRomAppTitle = null;
    54 	private Label labelRomApp2 = null;
    56 	private transient Label labelRomApp2 = null;
    55 	private Label labelRomApp3 = null;
    57 	private transient Label labelRomApp3 = null;
    56 	private Composite romComposite = null;
    58 	private transient Composite romComposite = null;
    57 	private Composite romLabelComposite = null;
    59 	private transient Composite romLabelComposite = null;
    58 	private Button buttonRom = null;
    60 	private transient Button buttonRom = null;
    59 	private Label labelRomTitle = null;
    61 	private transient Label labelRomTitle = null;
    60 	private Label labelRom2 = null;
    62 	private transient Label labelRom2 = null;
    61 	private Composite noneComposite = null;
    63 	private transient Composite noneComposite = null;
    62 	private Composite noneLabelComposite = null;
    64 	private transient Composite noneLabelComposite = null;
    63 	private Button buttonNone = null;
    65 	private transient Button buttonNone = null;
    64 	private Label labelNoneTitle = null;
    66 	private transient Label labelNoneTitle = null;
    65 	private Label labelNone2 = null;
    67 	private transient Label labelNone2 = null;
    66 	private Label labelNone3 = null;
    68 	private transient Label labelNone3 = null;
    67 	@SuppressWarnings("unused") //$NON-NLS-1$
    69 	@SuppressWarnings("unused") //$NON-NLS-1$
    68 	private Group customTraceGroup = null;
    70 	private transient Group customTraceGroup = null;
    69 	@SuppressWarnings("unused") //$NON-NLS-1$
    71 	@SuppressWarnings("unused") //$NON-NLS-1$
    70 	private Button buttonCustomTrace = null;
    72 	private transient Button buttonCustomTrace = null;
    71 	@SuppressWarnings("unused") //$NON-NLS-1$
    73 	@SuppressWarnings("unused") //$NON-NLS-1$
    72 	private Label labelCustomTrace = null;
    74 	private transient Label labelCustomTrace = null;
    73 
    75 
    74 	private ICarbideSharedImages carbideImages = CarbideUIPlugin.getSharedImages();
    76 	private transient final ICarbideSharedImages carbideImages = CarbideUIPlugin.getSharedImages();
    75 	private Image phonensisImage = carbideImages.getImage(ICarbideSharedImages.IMG_PI_IMPORT_ROM_AND_APP_100_42);
    77 	private transient final Image phonensisImage = carbideImages.getImage(ICarbideSharedImages.IMG_PI_IMPORT_ROM_AND_APP_100_42);
    76 	private Image phoneImage = carbideImages.getImage(ICarbideSharedImages.IMG_PI_IMPORT_ROM_42_42);
    78 	private transient final Image phoneImage = carbideImages.getImage(ICarbideSharedImages.IMG_PI_IMPORT_ROM_42_42);
    77 	private Image sisImage = carbideImages.getImage(ICarbideSharedImages.IMG_PI_IMPORT_APP_42_42);
    79 	private transient final Image sisImage = carbideImages.getImage(ICarbideSharedImages.IMG_PI_IMPORT_APP_42_42);
    78 	private Image noneImage = carbideImages.getImage(ICarbideSharedImages.IMG_PI_IMPORT_NONE_100_42);
    80 	private transient final Image noneImage = carbideImages.getImage(ICarbideSharedImages.IMG_PI_IMPORT_NONE_100_42);
    79 	private Image cusTraceImage = carbideImages.getImage(ICarbideSharedImages.IMG_CUSTOM_TRACE_BADGE_24_24);
    81 	private transient final Image cusTraceImage = carbideImages.getImage(ICarbideSharedImages.IMG_CUSTOM_TRACE_BADGE_24_24);
    80 
    82 
    81 	protected NewPIWizardPageConfigSelectorTask() {
    83 	protected NewPIWizardPageConfigSelectorTask() {
    82 		super(Messages.getString("NewPIWizardPageConfigSelectorTask.title"));	//$NON-NLS-1$
    84 		super(Messages.getString("NewPIWizardPageConfigSelectorTask.title"));	//$NON-NLS-1$
    83 		setTitle(Messages.getString("NewPIWizardPageConfigSelectorTask.title")); //$NON-NLS-1$
    85 		setTitle(Messages.getString("NewPIWizardPageConfigSelectorTask.title")); //$NON-NLS-1$
    84 	    setDescription(Messages.getString("NewPIWizardPageConfigSelectorTask.description")); //$NON-NLS-1$
    86 	    setDescription(Messages.getString("NewPIWizardPageConfigSelectorTask.description")); //$NON-NLS-1$
    85 	}
    87 	}
    86 
    88 
    87 	SelectionListener buttonListener = new SelectionListener () {
    89 	private final transient SelectionListener buttonListener = new SelectionAdapter () {
    88 		// handle all buttons including radio behavior among toggle
    90 		// handle all buttons including radio behavior among toggle
    89 		
    91 	
    90 		public void widgetDefaultSelected(SelectionEvent arg0) {
    92 		public void widgetSelected(final SelectionEvent arg0) {
    91 		}
       
    92 
       
    93 		public void widgetSelected(SelectionEvent arg0) {
       
    94 			buttonApp.setSelection(false);
    93 			buttonApp.setSelection(false);
    95 			buttonRomApp.setSelection(false);
    94 			buttonRomApp.setSelection(false);
    96 			buttonRom.setSelection(false);
    95 			buttonRom.setSelection(false);
    97 			buttonNone.setSelection(false);
    96 			buttonNone.setSelection(false);
    98 			((Button)arg0.widget).setSelection(true);
    97 			((Button)arg0.widget).setSelection(true);
   112 			}
   111 			}
   113 			validatePage();
   112 			validatePage();
   114 		}
   113 		}
   115 	};
   114 	};
   116 
   115 
   117 	public void createControl(Composite parent) {
   116 	public void createControl(final Composite parent) {
   118 		super.createControl(parent);
   117 		super.createControl(parent);
   119 		GridLayout gridLayout1 = new GridLayout();
   118 		final GridLayout gridLayout1 = new GridLayout();
   120 		gridLayout1.numColumns = 1;
   119 		gridLayout1.numColumns = 1;
   121 		composite = new Composite (parent, SWT.NONE);
   120 		composite = new Composite (parent, SWT.NONE);
   122 		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
   121 		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
   123 		composite.setLayout(gridLayout1);
   122 		composite.setLayout(gridLayout1);
   124 		GridLayout gridLayout2 = new GridLayout();
   123 		final GridLayout gridLayout2 = new GridLayout();
   125 		gridLayout2.numColumns = 1;
   124 		gridLayout2.numColumns = 1;
   126 		optionGroup = new Group(composite, SWT.NONE);
   125 		optionGroup = new Group(composite, SWT.NONE);
   127 		optionGroup.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   126 		optionGroup.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   128 		optionGroup.setLayout(gridLayout2);
   127 		optionGroup.setLayout(gridLayout2);
   129 		optionGroup.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.option.group")); //$NON-NLS-1$
   128 		optionGroup.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.option.group")); //$NON-NLS-1$
   139 		labelNoneTitle = new Label(optionGroup, SWT.NONE);
   138 		labelNoneTitle = new Label(optionGroup, SWT.NONE);
   140 		labelNoneTitle.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelNoneTitle")); //$NON-NLS-1$				
   139 		labelNoneTitle.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelNoneTitle")); //$NON-NLS-1$				
   141 		createNoneComposite();
   140 		createNoneComposite();
   142 //		createCustomComposite();
   141 //		createCustomComposite();
   143 		
   142 		
   144 		GridData buttonWidthGridData = new GridData();
   143 		final GridData buttonWidthGridData = new GridData();
   145 		buttonWidthGridData.widthHint = Math.max(Math.max(Math.max(phonensisImage.getBounds().width, phoneImage.getBounds().width), sisImage.getBounds().width), noneImage.getBounds().width) + 30;
   144 		buttonWidthGridData.widthHint = Math.max(Math.max(Math.max(phonensisImage.getBounds().width, phoneImage.getBounds().width), sisImage.getBounds().width), noneImage.getBounds().width) + 30;
   146 		buttonWidthGridData.heightHint = Math.max(Math.max(Math.max(phonensisImage.getBounds().height, phoneImage.getBounds().height), sisImage.getBounds().height), noneImage.getBounds().height) + 30;
   145 		buttonWidthGridData.heightHint = Math.max(Math.max(Math.max(phonensisImage.getBounds().height, phoneImage.getBounds().height), sisImage.getBounds().height), noneImage.getBounds().height) + 30;
   147 		buttonRomApp.setLayoutData(buttonWidthGridData);
   146 		buttonRomApp.setLayoutData(buttonWidthGridData);
   148 		buttonRom.setLayoutData(buttonWidthGridData);
   147 		buttonRom.setLayoutData(buttonWidthGridData);
   149 		buttonApp.setLayoutData(buttonWidthGridData);
   148 		buttonApp.setLayoutData(buttonWidthGridData);
   153 		PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), CarbidePiWizardHelpIds.PI_IMPORT_WIZARD_CONFIG_SELECTOR);
   152 		PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), CarbidePiWizardHelpIds.PI_IMPORT_WIZARD_CONFIG_SELECTOR);
   154 		
   153 		
   155 		validatePage();
   154 		validatePage();
   156 	}
   155 	}
   157 	
   156 	
   158 	void createAppComposite() {
   157 	/* (non-Javadoc)
   159 		GridLayout gridLayout1 = new GridLayout();
   158 	 * @see org.eclipse.jface.dialogs.DialogPage#performHelp()
       
   159 	 */
       
   160 	@Override
       
   161 	public void performHelp() {
       
   162 		final WizardDialog wizardDialog = (WizardDialog)getContainer();	
       
   163 		if(wizardDialog.buttonBar != null){	
       
   164 			PlatformUI.getWorkbench().getHelpSystem().setHelp(wizardDialog.buttonBar,
       
   165 					CarbidePiWizardHelpIds.PI_IMPORT_WIZARD_CONFIG_SELECTOR);
       
   166 		}
       
   167 
       
   168 	}
       
   169 	
       
   170 	private void createAppComposite() {
       
   171 		final GridLayout gridLayout1 = new GridLayout();
   160 		gridLayout1.numColumns = 2;
   172 		gridLayout1.numColumns = 2;
   161 		appComposite = new Composite (optionGroup, SWT.NONE);
   173 		appComposite = new Composite (optionGroup, SWT.NONE);
   162 		appComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   174 		appComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   163 		appComposite.setLayout(gridLayout1);
   175 		appComposite.setLayout(gridLayout1);
   164 		buttonApp = new Button(appComposite, SWT.TOGGLE);
   176 		buttonApp = new Button(appComposite, SWT.TOGGLE);
   165 		buttonApp.setImage(sisImage);
   177 		buttonApp.setImage(sisImage);
   166 		buttonApp.addSelectionListener(buttonListener);
   178 		buttonApp.addSelectionListener(buttonListener);
   167 		GridLayout gridLayout2 = new GridLayout();
   179 		final GridLayout gridLayout2 = new GridLayout();
   168 		gridLayout2.numColumns = 1;
   180 		gridLayout2.numColumns = 1;
   169 		appLabelComposite = new Composite (appComposite, SWT.NONE);
   181 		appLabelComposite = new Composite (appComposite, SWT.NONE);
   170 		appLabelComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   182 		appLabelComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   171 		appLabelComposite.setLayout(gridLayout2);
   183 		appLabelComposite.setLayout(gridLayout2);
   172 		labelApp2 = new Label(appLabelComposite, SWT.NONE);
   184 		labelApp2 = new Label(appLabelComposite, SWT.NONE);
   173 		labelApp2.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelApp2")); //$NON-NLS-1$
   185 		labelApp2.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelApp2")); //$NON-NLS-1$
   174 	}
   186 	}
   175 	
   187 	
   176 	void createRomAppComposite() {
   188 	private void createRomAppComposite() {
   177 		GridLayout gridLayout1 = new GridLayout();
   189 		final GridLayout gridLayout1 = new GridLayout();
   178 		gridLayout1.numColumns = 2;
   190 		gridLayout1.numColumns = 2;
   179 		romAppComposite = new Composite (optionGroup, SWT.NONE);
   191 		romAppComposite = new Composite (optionGroup, SWT.NONE);
   180 		romAppComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   192 		romAppComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   181 		romAppComposite.setLayout(gridLayout1);
   193 		romAppComposite.setLayout(gridLayout1);
   182 		buttonRomApp = new Button(romAppComposite, SWT.TOGGLE);
   194 		buttonRomApp = new Button(romAppComposite, SWT.TOGGLE);
   183 		buttonRomApp.setImage(phonensisImage);
   195 		buttonRomApp.setImage(phonensisImage);
   184 		buttonRomApp.addSelectionListener(buttonListener);
   196 		buttonRomApp.addSelectionListener(buttonListener);
   185 		GridLayout gridLayout2 = new GridLayout();
   197 		final GridLayout gridLayout2 = new GridLayout();
   186 		gridLayout2.numColumns = 1;
   198 		gridLayout2.numColumns = 1;
   187 		romAppLabelComposite = new Composite (romAppComposite, SWT.NONE);
   199 		romAppLabelComposite = new Composite (romAppComposite, SWT.NONE);
   188 		romAppLabelComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   200 		romAppLabelComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   189 		romAppLabelComposite.setLayout(gridLayout2);
   201 		romAppLabelComposite.setLayout(gridLayout2);
   190 		labelRomApp2 = new Label(romAppLabelComposite, SWT.NONE);
   202 		labelRomApp2 = new Label(romAppLabelComposite, SWT.NONE);
   191 		labelRomApp2.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelRomApp2")); //$NON-NLS-1$		
   203 		labelRomApp2.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelRomApp2")); //$NON-NLS-1$		
   192 		labelRomApp3 = new Label(romAppLabelComposite, SWT.NONE);
   204 		labelRomApp3 = new Label(romAppLabelComposite, SWT.NONE);
   193 		labelRomApp3.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelRomApp3")); //$NON-NLS-1$		
   205 		labelRomApp3.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelRomApp3")); //$NON-NLS-1$		
   194 	}
   206 	}
   195 	
   207 	
   196 	void createRomComposite() {
   208 	private void createRomComposite() {
   197 		GridLayout gridLayout1 = new GridLayout();
   209 		final GridLayout gridLayout1 = new GridLayout();
   198 		gridLayout1.numColumns = 2;
   210 		gridLayout1.numColumns = 2;
   199 		romComposite = new Composite (optionGroup, SWT.NONE);
   211 		romComposite = new Composite (optionGroup, SWT.NONE);
   200 		romComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   212 		romComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   201 		romComposite.setLayout(gridLayout1);
   213 		romComposite.setLayout(gridLayout1);
   202 		buttonRom = new Button(romComposite, SWT.TOGGLE);
   214 		buttonRom = new Button(romComposite, SWT.TOGGLE);
   203 		buttonRom.setImage(phoneImage);
   215 		buttonRom.setImage(phoneImage);
   204 		buttonRom.addSelectionListener(buttonListener);
   216 		buttonRom.addSelectionListener(buttonListener);
   205 		GridLayout gridLayout2 = new GridLayout();
   217 		final GridLayout gridLayout2 = new GridLayout();
   206 		gridLayout2.numColumns = 1;
   218 		gridLayout2.numColumns = 1;
   207 		romLabelComposite = new Composite (romComposite, SWT.NONE);
   219 		romLabelComposite = new Composite (romComposite, SWT.NONE);
   208 		romLabelComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   220 		romLabelComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   209 		romLabelComposite.setLayout(gridLayout2);
   221 		romLabelComposite.setLayout(gridLayout2);
   210 		labelRom2 = new Label(romLabelComposite, SWT.NONE);
   222 		labelRom2 = new Label(romLabelComposite, SWT.NONE);
   211 		labelRom2.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelRom2")); //$NON-NLS-1$				
   223 		labelRom2.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelRom2")); //$NON-NLS-1$				
   212 	}
   224 	}
   213 	
   225 	
   214 	void createNoneComposite() {
   226 	private void createNoneComposite() {
   215 		GridLayout gridLayout1 = new GridLayout();
   227 		final GridLayout gridLayout1 = new GridLayout();
   216 		gridLayout1.numColumns = 2;
   228 		gridLayout1.numColumns = 2;
   217 		noneComposite = new Composite (optionGroup, SWT.NONE);
   229 		noneComposite = new Composite (optionGroup, SWT.NONE);
   218 		noneComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   230 		noneComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   219 		noneComposite.setLayout(gridLayout1);
   231 		noneComposite.setLayout(gridLayout1);
   220 		buttonNone = new Button(noneComposite, SWT.TOGGLE);
   232 		buttonNone = new Button(noneComposite, SWT.TOGGLE);
   221 		buttonNone.setImage(noneImage);
   233 		buttonNone.setImage(noneImage);
   222 		buttonNone.addSelectionListener(buttonListener);
   234 		buttonNone.addSelectionListener(buttonListener);
   223 		GridLayout gridLayout2 = new GridLayout();
   235 		final GridLayout gridLayout2 = new GridLayout();
   224 		gridLayout2.numColumns = 1;
   236 		gridLayout2.numColumns = 1;
   225 		noneLabelComposite = new Composite (noneComposite, SWT.NONE);
   237 		noneLabelComposite = new Composite (noneComposite, SWT.NONE);
   226 		noneLabelComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   238 		noneLabelComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, true));
   227 		noneLabelComposite.setLayout(gridLayout2);
   239 		noneLabelComposite.setLayout(gridLayout2);
   228 		labelNone2 = new Label(noneLabelComposite, SWT.NONE);
   240 		labelNone2 = new Label(noneLabelComposite, SWT.NONE);
   229 		labelNone2.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelNone2")); //$NON-NLS-1$				
   241 		labelNone2.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelNone2")); //$NON-NLS-1$				
   230 		labelNone3 = new Label(noneLabelComposite, SWT.NONE);
   242 		labelNone3 = new Label(noneLabelComposite, SWT.NONE);
   231 		labelNone3.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelNone3")); //$NON-NLS-1$				
   243 		labelNone3.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelNone3")); //$NON-NLS-1$				
   232 	}
   244 	}
   233 
   245 
   234 	void createCustomComposite() {
       
   235 		GridLayout gridLayout3 = new GridLayout();
       
   236 		gridLayout3.numColumns = 2;
       
   237 		customTraceGroup = new Group(composite, SWT.NONE);
       
   238 		customTraceGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
       
   239 		customTraceGroup.setLayout(gridLayout3);
       
   240 		buttonCustomTrace = new Button(customTraceGroup, SWT.CHECK);
       
   241 		buttonCustomTrace.setImage(cusTraceImage);
       
   242 		buttonCustomTrace.addSelectionListener(buttonListener);
       
   243 		labelCustomTrace = new Label(customTraceGroup, SWT.WRAP);
       
   244 		labelCustomTrace.setText(Messages.getString("NewPIWizardPageConfigSelectorTask.labelCustomTrace")); //$NON-NLS-1$
       
   245 	}
       
   246 	
       
   247 	public void validatePage() {
   246 	public void validatePage() {
   248 		if (buttonRomApp.getSelection() == false &&
   247 		if (buttonRomApp.getSelection() == false &&
   249 			buttonApp.getSelection() == false &&
   248 			buttonApp.getSelection() == false &&
   250 			buttonRom.getSelection() == false 
   249 			buttonRom.getSelection() == false 
   251 			&&
   250 			&&
   257 		}
   256 		}
   258 		setErrorMessage(null);
   257 		setErrorMessage(null);
   259 	}
   258 	}
   260 
   259 
   261 	public void setupPageFromFromNewPIWizardSettings() {
   260 	public void setupPageFromFromNewPIWizardSettings() {
   262 		if (NewPIWizardSettings.getInstance().haveAppRom == true) {
   261 		if (NewPIWizardSettings.getInstance().haveAppRom) {
   263 //			buttonApp.setSelection(false);
   262 //			buttonApp.setSelection(false);
   264 //			buttonRomApp.setSelection(true);
   263 //			buttonRomApp.setSelection(true);
   265 //			buttonRom.setSelection(false);
   264 //			buttonRom.setSelection(false);
   266 			// set focus, and block them
   265 			// set focus, and block them
   267 			buttonRomApp.setFocus();
   266 			buttonRomApp.setFocus();
   268 		} else if (NewPIWizardSettings.getInstance().haveAppOnly == true) {
   267 		} else if (NewPIWizardSettings.getInstance().haveAppOnly) {
   269 //			buttonApp.setSelection(true);
   268 //			buttonApp.setSelection(true);
   270 //			buttonRomApp.setSelection(false);
   269 //			buttonRomApp.setSelection(false);
   271 //			buttonRom.setSelection(false);
   270 //			buttonRom.setSelection(false);
   272 			// set focus, and block them
   271 			// set focus, and block them
   273 			buttonApp.setFocus();
   272 			buttonApp.setFocus();
   274 		} else if (NewPIWizardSettings.getInstance().haveRomOnly == true) {
   273 		} else if (NewPIWizardSettings.getInstance().haveRomOnly) {
   275 //			buttonApp.setSelection(false);
   274 //			buttonApp.setSelection(false);
   276 //			buttonRomApp.setSelection(false);
   275 //			buttonRomApp.setSelection(false);
   277 //			buttonRom.setSelection(true);
   276 //			buttonRom.setSelection(true);
   278 //			 set focus, and block them
   277 //			 set focus, and block them
   279 			buttonRom.setFocus();
   278 			buttonRom.setFocus();