/** * Create the contents * @param parent Parent composite * @return Created control */ public Composite createContents(Composite parent) { final int numColumns = 5; fPixConv = new PixelConverter(parent); fComposite = createComposite(parent, numColumns); Label profileLabel= new Label(fComposite, SWT.NONE); profileLabel.setText(PreferencesMessages.CleanUpPreferencePage_Description); GridData data= new GridData(SWT.FILL, SWT.FILL, true, false); data.horizontalSpan= numColumns; profileLabel.setLayoutData(data); fProfileCombo= createProfileCombo(fComposite, 3, fPixConv.convertWidthInCharsToPixels(20)); fEditButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_edit_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fDeleteButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_remove_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fNewButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_new_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fLoadButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_load_button_desc, GridData.HORIZONTAL_ALIGN_END); fExportAllButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_export_all_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); createLabel(fComposite, "", 2); //$NON-NLS-1$ configurePreview(fComposite, numColumns, fProfileManager); new ButtonController(); new ProfileComboController(); return fComposite; }
/** * Create the contents * @param parent Parent composite * @return Created control */ public Composite createContents(Composite parent) { final int numColumns = 5; fPixConv = new PixelConverter(parent); fComposite = createComposite(parent, numColumns); Label profileLabel= new Label(fComposite, SWT.NONE); profileLabel.setText(PreferencesMessages.CleanUpPreferencePage_Description); GridData data= new GridData(SWT.FILL, SWT.FILL, true, false); data.horizontalSpan= numColumns; profileLabel.setLayoutData(data); fProfileCombo= createProfileCombo(fComposite, 3, fPixConv.convertWidthInCharsToPixels(20)); fEditButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_edit_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fDeleteButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_remove_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fNewButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_new_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fLoadButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_load_button_desc, GridData.HORIZONTAL_ALIGN_END); fExportAllButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_export_all_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); createLabel(fComposite, "", 2); //$NON-NLS-1$ configurePreview(fComposite, numColumns, fProfileManager); new ButtonController(); new ProfileComboController(); return fComposite; }
/** * Create the contents * @param parent Parent composite * @return Created control */ public Composite createContents(Composite parent) { final int numColumns = 5; fPixConv = new PixelConverter(parent); fComposite = createComposite(parent, numColumns); Label profileLabel= new Label(fComposite, SWT.NONE); profileLabel.setText(PreferencesMessages.CleanUpPreferencePage_Description); GridData data= new GridData(SWT.FILL, SWT.FILL, true, false); data.horizontalSpan= numColumns; profileLabel.setLayoutData(data); fProfileCombo= createProfileCombo(fComposite, 3, fPixConv.convertWidthInCharsToPixels(20)); fEditButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_edit_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fDeleteButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_remove_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fNewButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_new_button_desc, GridData.HORIZONTAL_ALIGN_BEGINNING); fLoadButton= createButton(fComposite, FormatterMessages.CodingStyleConfigurationBlock_load_button_desc, GridData.HORIZONTAL_ALIGN_END); createLabel(fComposite, "", 3); //$NON-NLS-1$ configurePreview(fComposite, numColumns, fProfileManager); new ButtonController(); new ProfileComboController(); return fComposite; }