String[] values345= new String[] { VERSION_1_3, VERSION_1_4, VERSION_1_5 }; String[] values345Labels= new String[] {
String[] values3456= new String[] { VERSION_1_3, VERSION_1_4, VERSION_1_5, VERSION_1_6 }; String[] values3456Labels= new String[] {
	private Composite createComplianceTabContent(Composite folder) {		String[] values345= new String[] { VERSION_1_3, VERSION_1_4, VERSION_1_5 };		String[] values345Labels= new String[] {			PreferencesMessages.ComplianceConfigurationBlock_version13,  			PreferencesMessages.ComplianceConfigurationBlock_version14, 			PreferencesMessages.ComplianceConfigurationBlock_version15		};		final ScrolledPageContent sc1 = new ScrolledPageContent(folder);		Composite composite= sc1.getBody();		GridLayout layout= new GridLayout();		layout.marginHeight= 0;		layout.marginWidth= 0;		composite.setLayout(layout);				fControlsComposite= new Composite(composite, SWT.NONE);		fControlsComposite.setFont(composite.getFont());				layout= new GridLayout();		layout.marginHeight= 0;		layout.marginWidth= 0;		layout.numColumns= 1;		fControlsComposite.setLayout(layout);		int nColumns= 3;		layout= new GridLayout();		layout.numColumns= nColumns;		Group group= new Group(fControlsComposite, SWT.NONE);		group.setFont(fControlsComposite.getFont());		group.setText(PreferencesMessages.ComplianceConfigurationBlock_compliance_group_label); 		group.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false));		group.setLayout(layout);			String label= PreferencesMessages.ComplianceConfigurationBlock_compiler_compliance_label; 		addComboBox(group, label, PREF_COMPLIANCE, values345, values345Labels, 0);		label= PreferencesMessages.ComplianceConfigurationBlock_default_settings_label; 		addCheckBox(group, label, INTR_DEFAULT_COMPLIANCE, new String[] { DEFAULT_CONF, USER_CONF }, 0);			int indent= fPixelConverter.convertWidthInCharsToPixels(2);		Control[] otherChildren= group.getChildren();							String[] versions= new String[] { VERSION_1_1, VERSION_1_2, VERSION_1_3, VERSION_1_4, VERSION_1_5 };		String[] versionsLabels= new String[] {			PreferencesMessages.ComplianceConfigurationBlock_version11,  			PreferencesMessages.ComplianceConfigurationBlock_version12, 			PreferencesMessages.ComplianceConfigurationBlock_version13, 			PreferencesMessages.ComplianceConfigurationBlock_version14, 			PreferencesMessages.ComplianceConfigurationBlock_version15		};				label= PreferencesMessages.ComplianceConfigurationBlock_codegen_targetplatform_label; 		addComboBox(group, label, PREF_CODEGEN_TARGET_PLATFORM, versions, versionsLabels, indent);			label= PreferencesMessages.ComplianceConfigurationBlock_source_compatibility_label; 		addComboBox(group, label, PREF_SOURCE_COMPATIBILITY, values345, values345Labels, indent);			String[] errorWarningIgnore= new String[] { ERROR, WARNING, IGNORE };				String[] errorWarningIgnoreLabels= new String[] {			PreferencesMessages.ComplianceConfigurationBlock_error,  			PreferencesMessages.ComplianceConfigurationBlock_warning, 			PreferencesMessages.ComplianceConfigurationBlock_ignore		};		label= PreferencesMessages.ComplianceConfigurationBlock_pb_assert_as_identifier_label; 		addComboBox(group, label, PREF_PB_ASSERT_AS_IDENTIFIER, errorWarningIgnore, errorWarningIgnoreLabels, indent);				label= PreferencesMessages.ComplianceConfigurationBlock_pb_enum_as_identifier_label; 		addComboBox(group, label, PREF_PB_ENUM_AS_IDENTIFIER, errorWarningIgnore, errorWarningIgnoreLabels, indent);						Control[] allChildren= group.getChildren();		fComplianceControls.addAll(Arrays.asList(allChildren));		fComplianceControls.removeAll(Arrays.asList(otherChildren));		layout= new GridLayout();		layout.numColumns= nColumns;		group= new Group(fControlsComposite, SWT.NONE);		group.setFont(fControlsComposite.getFont());		group.setText(PreferencesMessages.ComplianceConfigurationBlock_classfiles_group_label); 		group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));		group.setLayout(layout);		String[] generateValues= new String[] { GENERATE, DO_NOT_GENERATE };		String[] enableDisableValues= new String[] { ENABLED, DISABLED };		label= PreferencesMessages.ComplianceConfigurationBlock_variable_attr_label; 		addCheckBox(group, label, PREF_LOCAL_VARIABLE_ATTR, generateValues, 0);				label= PreferencesMessages.ComplianceConfigurationBlock_line_number_attr_label; 		addCheckBox(group, label, PREF_LINE_NUMBER_ATTR, generateValues, 0);				label= PreferencesMessages.ComplianceConfigurationBlock_source_file_attr_label; 		addCheckBox(group, label, PREF_SOURCE_FILE_ATTR, generateValues, 0);				label= PreferencesMessages.ComplianceConfigurationBlock_codegen_unused_local_label; 		addCheckBox(group, label, PREF_CODEGEN_UNUSED_LOCAL, new String[] { PRESERVE, OPTIMIZE_OUT }, 0);			label= PreferencesMessages.ComplianceConfigurationBlock_codegen_inline_jsr_bytecode_label; 		addCheckBox(group, label, PREF_CODEGEN_INLINE_JSR_BYTECODE, enableDisableValues, 0);					fJRE50InfoText= new Link(composite, SWT.WRAP);		if (fProject == null) {			fJRE50InfoText.setText(PreferencesMessages.ComplianceConfigurationBlock_jrecompliance_info);		} else {			fJRE50InfoText.setText(PreferencesMessages.ComplianceConfigurationBlock_jrecompliance_info_project);		}		fJRE50InfoText.setFont(composite.getFont());		fJRE50InfoText.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				if ("1".equals(e.text)) { //$NON-NLS-1$					openJREInstallPreferencePage();				} else {					openBuildPathPropertyPage();				}			}			public void widgetSelected(SelectionEvent e) {				widgetDefaultSelected(e);			}		});		GridData gd= new GridData(GridData.FILL, GridData.FILL, true, true);		gd.widthHint= fPixelConverter.convertWidthInCharsToPixels(50);		fJRE50InfoText.setLayoutData(gd);		validateJRE50Status();				return sc1;	}