protected void createButtonsForButtonBar(Composite parent) { fApplyButton= createButton(parent, APPLAY_BUTTON_ID, FormatterMessages.ModifyDialog_apply_button, false); fApplyButton.setEnabled(false); GridLayout layout= (GridLayout) parent.getLayout(); layout.numColumns++; layout.makeColumnsEqualWidth= false; Label label= new Label(parent, SWT.NONE); GridData data= new GridData(); data.widthHint= layout.horizontalSpacing; label.setLayoutData(data); super.createButtonsForButtonBar(parent); }
@Override protected void createButtonsForButtonBar(Composite parent) { fApplyButton= createButton(parent, APPLAY_BUTTON_ID, FormatterMessages.ModifyDialog_apply_button, false); fApplyButton.setEnabled(false); GridLayout layout= (GridLayout) parent.getLayout(); layout.numColumns++; layout.makeColumnsEqualWidth= false; Label label= new Label(parent, SWT.NONE); GridData data= new GridData(); data.widthHint= layout.horizontalSpacing; label.setLayoutData(data); super.createButtonsForButtonBar(parent); }
@Override protected void createButtonsForButtonBar(Composite parent) { fApplyButton= createButton(parent, APPLAY_BUTTON_ID, FormatterMessages.ModifyDialog_apply_button, false); fApplyButton.setEnabled(false); GridLayout layout= (GridLayout) parent.getLayout(); layout.numColumns++; layout.makeColumnsEqualWidth= false; Label label= new Label(parent, SWT.NONE); GridData data= new GridData(); data.widthHint= layout.horizontalSpacing; label.setLayoutData(data); super.createButtonsForButtonBar(parent); }
private void createNameArea(final Composite parent) { Composite nameComposite= new Composite(parent, SWT.NONE); nameComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); nameComposite.setLayout(new GridLayout(3, false)); nameComposite.setFont(parent.getFont()); fProfileNameField= new StringDialogField(); fProfileNameField.setLabelText(FormatterMessages.ModifyDialog_ProfileName_Label); fProfileNameField.setText(fProfile.getName()); fProfileNameField.getLabelControl(nameComposite).setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false)); fProfileNameField.getTextControl(nameComposite).setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); fProfileNameField.setDialogFieldListener(new IDialogFieldListener() { @Override public void dialogFieldChanged(DialogField field) { doValidate(); } }); fSaveButton= createButton(nameComposite, SAVE_BUTTON_ID, FormatterMessages.ModifyDialog_Export_Button, false); }
fSaveButton= createButton(nameComposite, SAVE_BUTTON_ID, FormatterMessages.ModifyDialog_Export_Button, false);
fSaveButton= createButton(nameComposite, SAVE_BUTTON_ID, FormatterMessages.ModifyDialog_Export_Button, false);