importPBWOProject = importProjectButton.getSelection(); importPBWOProjectBrowseButton.setEnabled(importPBWOProject); importPBWOProjectPathField.setEnabled(importPBWOProject); importPBWOProjectLabel.setEnabled(importPBWOProject); if (!importPBWOProject) { importPBWOProjectPathFieldValue = importPBWOProjectPathField.getText(); importPBWOProjectPathField.setText("");
importPBProject = importProjectButton.getSelection(); importPBProjectBrowseButton.setEnabled(importPBProject); importPBProjectPathField.setEnabled(importPBProject); importPBProjectLabel.setEnabled(importPBProject); if (!importPBProject) { importPBProjectPathFieldValue = importPBProjectPathField.getText(); importPBProjectPathField.setText("");
	private final void createProjectCreationOptionsGroup(Composite parent) {		Composite composite = (Composite) getControl();		GridData data = (GridData) composite.getLayoutData();		// section generation group		Group optionsGroup = new Group(composite, SWT.NONE);		GridLayout layout = new GridLayout();		layout.numColumns = 3;		optionsGroup.setLayout(layout);		optionsGroup.setText(			Messages.getString("WOProjectCreationPage.creationOptions.title"));		optionsGroup.setLayoutData(			new GridData(				GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));		final Button importProjectButton =			new Button(optionsGroup, SWT.CHECK | SWT.RIGHT);		importProjectButton.setText(Messages.getString("WOProjectCreationPage.creationOptions.importPBWOProject")); //$NON-NLS-1$		importProjectButton.setSelection(importPBWOProject);		importProjectButton.setFont(parent.getFont());		GridData buttonData = new GridData();		buttonData.horizontalSpan = 3;		importProjectButton.setLayoutData(buttonData);		createImportPBWOProjectLocationGroup(optionsGroup, importPBWOProject);		SelectionListener listener = new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				importPBWOProject = importProjectButton.getSelection();				importPBWOProjectBrowseButton.setEnabled(importPBWOProject);				importPBWOProjectPathField.setEnabled(importPBWOProject);				importPBWOProjectLabel.setEnabled(importPBWOProject);				if (!importPBWOProject) {					importPBWOProjectPathFieldValue =						importPBWOProjectPathField.getText();					importPBWOProjectPathField.setText("");					//setLocationForSelection();				} else {					importPBWOProjectPathField.setText(						importPBWOProjectPathFieldValue);				}			}		};		importProjectButton.addSelectionListener(listener);	}