use of org.talend.commons.ui.swt.formtools.UtilsButton in project tbd-studio-se by Talend.
the class KnoxInfoForm method addCheckFields.
private void addCheckFields() {
Composite checkGroup = new Composite(this, SWT.NONE);
GridLayout checkGridLayout = new GridLayout(1, false);
checkGroup.setLayout(checkGridLayout);
GridData checkGridData = new GridData(GridData.FILL_HORIZONTAL);
checkGridData.minimumHeight = 5;
checkGroup.setLayoutData(checkGridData);
Composite checkButtonComposite = Form.startNewGridLayout(checkGroup, 1, false, SWT.CENTER, SWT.BOTTOM);
GridLayout checkButtonLayout = (GridLayout) checkButtonComposite.getLayout();
checkButtonLayout.marginHeight = 0;
checkButtonLayout.marginWidth = 0;
// $NON-NLS-1$
checkServicesBtn = new UtilsButton(checkButtonComposite, Messages.getString("HadoopClusterForm.button.check"), true);
checkServicesBtn.setEnabled(false);
}
use of org.talend.commons.ui.swt.formtools.UtilsButton in project tbd-studio-se by Talend.
the class StandardHCInfoForm method addCheckFields.
private void addCheckFields() {
Composite checkGroup = new Composite(this, SWT.NONE);
GridLayout checkGridLayout = new GridLayout(1, false);
checkGroup.setLayout(checkGridLayout);
GridData checkGridData = new GridData(GridData.FILL_HORIZONTAL);
checkGridData.minimumHeight = 5;
checkGroup.setLayoutData(checkGridData);
Composite checkButtonComposite = Form.startNewGridLayout(checkGroup, 1, false, SWT.CENTER, SWT.BOTTOM);
GridLayout checkButtonLayout = (GridLayout) checkButtonComposite.getLayout();
checkButtonLayout.marginHeight = 0;
checkButtonLayout.marginWidth = 0;
// $NON-NLS-1$
checkServicesBtn = new UtilsButton(checkButtonComposite, Messages.getString("HadoopClusterForm.button.check"), true);
checkServicesBtn.setEnabled(false);
}
Aggregations