本文整理匯總了Java中org.eclipse.swt.widgets.Button.setLayoutData方法的典型用法代碼示例。如果您正苦於以下問題:Java Button.setLayoutData方法的具體用法?Java Button.setLayoutData怎麽用?Java Button.setLayoutData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.swt.widgets.Button
的用法示例。
在下文中一共展示了Button.setLayoutData方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createControl
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
/**
* Creates the boolean option control. Option reserves the right to modify
* the actual widget used as long as the user can modify its boolean state.
*
* @param parent
* the parent composite of the option widget
* @param span
* the number of columns that the widget should span
*/
public void createControl(Composite parent, int span) {
button = new Button(parent, SWT.CHECK);
button.setText(getLabel());
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = span;
button.setLayoutData(gd);
button.setSelection(isSelected());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
BooleanOption.super.setValue(button.getSelection() ? Boolean.TRUE : Boolean.FALSE);
getSection().validateOptions(BooleanOption.this);
}
});
button.setEnabled(isEnabled());
}
示例2: createIsSporadicCheckbox
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
/**
* @generated
*/
protected Composite createIsSporadicCheckbox(Composite parent) {
isSporadic = new Button(parent, SWT.CHECK);
isSporadic.setText(getDescription(AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic, AnalysisMessages.TwcaEventModelPropertiesEditionPart_IsSporadicLabel));
isSporadic.addSelectionListener(new SelectionAdapter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
* @generated
*/
public void widgetSelected(SelectionEvent e) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(TwcaEventModelPropertiesEditionPartImpl.this, AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(isSporadic.getSelection())));
}
});
GridData isSporadicData = new GridData(GridData.FILL_HORIZONTAL);
isSporadicData.horizontalSpan = 2;
isSporadic.setLayoutData(isSporadicData);
EditingUtils.setID(isSporadic, AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic);
EditingUtils.setEEFtype(isSporadic, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic, AnalysisViewsRepository.SWT_KIND), null); //$NON-NLS-1$
// Start of user code for createIsSporadicCheckbox
// End of user code
return parent;
}
示例3: createIsStaticSchedulingFeatureCheckbox
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
protected Composite createIsStaticSchedulingFeatureCheckbox(Composite parent) {
isStaticSchedulingFeature = new Button(parent, SWT.CHECK);
isStaticSchedulingFeature.setText(getDescription(SrmViewsRepository.Other.Properties.isStaticSchedulingFeature,
SrmMessages.OtherPropertiesEditionPart_IsStaticSchedulingFeatureLabel));
isStaticSchedulingFeature.addSelectionListener(new SelectionAdapter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*
*/
public void widgetSelected(SelectionEvent e) {
if (propertiesEditionComponent != null)
propertiesEditionComponent
.firePropertiesChanged(new PropertiesEditionEvent(OtherPropertiesEditionPartImpl.this,
SrmViewsRepository.Other.Properties.isStaticSchedulingFeature,
PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null,
new Boolean(isStaticSchedulingFeature.getSelection())));
}
});
GridData isStaticSchedulingFeatureData = new GridData(GridData.FILL_HORIZONTAL);
isStaticSchedulingFeatureData.horizontalSpan = 2;
isStaticSchedulingFeature.setLayoutData(isStaticSchedulingFeatureData);
EditingUtils.setID(isStaticSchedulingFeature, SrmViewsRepository.Other.Properties.isStaticSchedulingFeature);
EditingUtils.setEEFtype(isStaticSchedulingFeature, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(
SrmViewsRepository.Other.Properties.isStaticSchedulingFeature, SrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
// Start of user code for createIsStaticSchedulingFeatureCheckbox
// End of user code
return parent;
}
示例4: createUIButtonOK
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
/**
*
*/
private void createUIButtonOK() {
// Create the button
fButtonOK = new Button(fCompositeLogin, SWT.PUSH);
fButtonOK.setText("OK"); //NON-NLS-1
// Configure layout data
GridData data = new GridData(SWT.NONE, SWT.NONE, false, false);
data.widthHint = F_BUTTON_WIDTH_HINT;
data.verticalIndent = 10;
fButtonOK.setLayoutData(data);
}
示例5: createIsProtectedCheckbox
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
protected Composite createIsProtectedCheckbox(Composite parent) {
isProtected = new Button(parent, SWT.CHECK);
isProtected.setText(getDescription(GrmViewsRepository.General.Properties.isProtected,
GrmMessages.GeneralPropertiesEditionPart_IsProtectedLabel));
isProtected.addSelectionListener(new SelectionAdapter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*
*/
public void widgetSelected(SelectionEvent e) {
if (propertiesEditionComponent != null)
propertiesEditionComponent
.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
GrmViewsRepository.General.Properties.isProtected, PropertiesEditionEvent.COMMIT,
PropertiesEditionEvent.SET, null, new Boolean(isProtected.getSelection())));
}
});
GridData isProtectedData = new GridData(GridData.FILL_HORIZONTAL);
isProtectedData.horizontalSpan = 2;
isProtected.setLayoutData(isProtectedData);
EditingUtils.setID(isProtected, GrmViewsRepository.General.Properties.isProtected);
EditingUtils.setEEFtype(isProtected, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent
.getHelpContent(GrmViewsRepository.General.Properties.isProtected, GrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
// Start of user code for createIsProtectedCheckbox
// End of user code
return parent;
}
示例6: createIsSynchronousCheckbox
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
protected Composite createIsSynchronousCheckbox(Composite parent) {
isSynchronous = new Button(parent, SWT.CHECK);
isSynchronous.setText(getDescription(LibraryViewsRepository.General.Properties.isSynchronous, LibraryMessages.GeneralPropertiesEditionPart_IsSynchronousLabel));
isSynchronous.addSelectionListener(new SelectionAdapter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*
*/
public void widgetSelected(SelectionEvent e) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this, LibraryViewsRepository.General.Properties.isSynchronous, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(isSynchronous.getSelection())));
}
});
GridData isSynchronousData = new GridData(GridData.FILL_HORIZONTAL);
isSynchronousData.horizontalSpan = 2;
isSynchronous.setLayoutData(isSynchronousData);
EditingUtils.setID(isSynchronous, LibraryViewsRepository.General.Properties.isSynchronous);
EditingUtils.setEEFtype(isSynchronous, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(LibraryViewsRepository.General.Properties.isSynchronous, LibraryViewsRepository.SWT_KIND), null); //$NON-NLS-1$
// Start of user code for createIsSynchronousCheckbox
// End of user code
return parent;
}
示例7: addButtonPanel
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void addButtonPanel(Composite container) {
Composite composite_1 = new Composite(container, SWT.NONE);
composite_1.setLayout(new GridLayout(4, false));
ColumnLayoutData cld_composite_1 = new ColumnLayoutData();
cld_composite_1.horizontalAlignment = ColumnLayoutData.RIGHT;
cld_composite_1.heightHint = 30;
composite_1.setLayoutData(cld_composite_1);
Button addButton = new Button(composite_1, SWT.NONE);
addButton.setToolTipText(Messages.ADD_KEY_SHORTCUT_TOOLTIP);
addButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
addButton.setImage(ImagePathConstant.ADD_BUTTON.getImageFromRegistry());
attachAddButtonListern(addButton);
deleteButton = new Button(composite_1, SWT.NONE);
deleteButton.setToolTipText(Messages.DELETE_KEY_SHORTCUT_TOOLTIP);
deleteButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
deleteButton.setImage(ImagePathConstant.DELETE_BUTTON.getImageFromRegistry());
attachDeleteButtonListener(deleteButton);
upButton = new Button(composite_1, SWT.NONE);
upButton.setToolTipText(Messages.MOVE_UP_KEY_SHORTCUT_TOOLTIP);
upButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
upButton.setImage(ImagePathConstant.MOVEUP_BUTTON.getImageFromRegistry());
attachUpButtonListener(upButton);
downButton = new Button(composite_1, SWT.NONE);
downButton.setToolTipText(Messages.MOVE_DOWN_KEY_SHORTCUT_TOOLTIP);
downButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
downButton.setImage(ImagePathConstant.MOVEDOWN_BUTTON.getImageFromRegistry());
attachDownButtonListerner(downButton);
deleteButton.setEnabled(false);
upButton.setEnabled(false);
downButton.setEnabled(false);
}
示例8: createUIButtonCancel
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
/**
*
*/
private void createUIButtonCancel() {
// Create the button
fButtonCancel = new Button(fCompositeLogin, SWT.PUSH);
fButtonCancel.setText("Cancel"); //NON-NLS-1
// Configure layout data
GridData data = new GridData(SWT.NONE, SWT.NONE, false, false);
data.widthHint = F_BUTTON_WIDTH_HINT;
data.verticalIndent = 10;
fButtonCancel.setLayoutData(data);
}
示例9: createGridComposite
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
@Override
protected GridComposite createGridComposite(Composite parent) {
GridComposite gridComposite = new GridComposite(parent) {
@Override
protected void createContents() {
GridTextInput userNameGridTextInput = new GridTextInput(this, GridTextInput.Type.VALUE_REQUIRED,
CONTROL_NAME_USER_NAME_TEXT, "&User name: ", null);
addGridTextInput(userNameGridTextInput);
GridTextInput passwordGridTextInput = new GridTextInput(this, GridTextInput.Type.VALUE_REQUIRED,
CONTROL_NAME_PASSWORD_TEXT, "&Password: ", null);
addGridTextInput(passwordGridTextInput);
passwordGridTextInput.getText().setEchoChar('*');
final Button showPasswordTextCheckBox = new Button(this, SWT.CHECK);
showPasswordTextCheckBox.setText("Show password text");
showPasswordTextCheckBox.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
showPasswordTextCheckBox.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
Text passwordText = (Text) getControl(CONTROL_NAME_PASSWORD_TEXT);
char echoChar = (showPasswordTextCheckBox.getSelection()) ? '\0' : '*';
passwordText.setEchoChar(echoChar);
}
});
}
};
return gridComposite;
}
示例10: attachToPropertySubGroup
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
@Override
public void attachToPropertySubGroup(AbstractELTContainerWidget subGroup) {
logger.debug("Starting {} button creation");
ELTDefaultSubgroupComposite testConnectionComposite = new ELTDefaultSubgroupComposite(subGroup.getContainerControl());
testConnectionComposite.createContainerWidget();
ELTDefaultLable defaultLable1 = new ELTDefaultLable("");
testConnectionComposite.attachWidget(defaultLable1);
setPropertyHelpWidget((Control) defaultLable1.getSWTWidgetControl());
ELTDefaultButton eltDefaultButton = new ELTDefaultButton(Messages.TEST_CONNECTION);
testConnectionComposite.attachWidget(eltDefaultButton);
testConnectionButton=(Button)eltDefaultButton.getSWTWidgetControl();
testConnectionButton.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER,false,false,0,0));
buttonDecorator = WidgetUtility.addDecorator(
(Control) eltDefaultButton.getSWTWidgetControl(),
Messages.bind(Messages.EmptyValueNotification,Messages.TEST_CONNECTION));
if (OSValidator.isMac()) {
buttonDecorator.setMarginWidth(-2);
}
else{
buttonDecorator.setMarginWidth(3);
}
attachButtonListner(testConnectionButton);
setDecoratorsVisibility();
Utils.INSTANCE.loadProperties();
}
示例11: createIsWatchdogCheckbox
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
protected Composite createIsWatchdogCheckbox(Composite parent) {
isWatchdog = new Button(parent, SWT.CHECK);
isWatchdog.setText(getDescription(SrmViewsRepository.General.Properties.isWatchdog,
SrmMessages.GeneralPropertiesEditionPart_IsWatchdogLabel));
isWatchdog.addSelectionListener(new SelectionAdapter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*
*/
public void widgetSelected(SelectionEvent e) {
if (propertiesEditionComponent != null)
propertiesEditionComponent
.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
SrmViewsRepository.General.Properties.isWatchdog, PropertiesEditionEvent.COMMIT,
PropertiesEditionEvent.SET, null, new Boolean(isWatchdog.getSelection())));
}
});
GridData isWatchdogData = new GridData(GridData.FILL_HORIZONTAL);
isWatchdogData.horizontalSpan = 2;
isWatchdog.setLayoutData(isWatchdogData);
EditingUtils.setID(isWatchdog, SrmViewsRepository.General.Properties.isWatchdog);
EditingUtils.setEEFtype(isWatchdog, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent
.getHelpContent(SrmViewsRepository.General.Properties.isWatchdog, SrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
// Start of user code for createIsWatchdogCheckbox
// End of user code
return parent;
}
示例12: createOperationInputTable
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void createOperationInputTable() {
Composite operationInputFieldComposite = new Composite(mainComposite, SWT.NONE);
operationInputFieldComposite.setLayout(new GridLayout(1, false));
GridData gridDataOperationInputFieldComposite = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
gridDataOperationInputFieldComposite.heightHint = 200;
gridDataOperationInputFieldComposite.widthHint = 159;
operationInputFieldComposite.setLayoutData(gridDataOperationInputFieldComposite);
Composite buttonComposite = new Composite(operationInputFieldComposite, SWT.NONE);
buttonComposite.setLayout(new GridLayout(2, false));
GridData gd_buttonComposite = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);
gd_buttonComposite.heightHint = 36;
gd_buttonComposite.widthHint = 139;
buttonComposite.setLayoutData(gd_buttonComposite);
addButtonInputTable = new Button(buttonComposite, SWT.NONE);
addButtonInputTable.setImage(ImagePathConstant.ADD_BUTTON.getImageFromRegistry());
deletButtonInputTable = new Button(buttonComposite, SWT.NONE);
deletButtonInputTable.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
deletButtonInputTable.setImage(ImagePathConstant.DELETE_BUTTON.getImageFromRegistry());
inputTableViewer = new TableViewer(operationInputFieldComposite, SWT.BORDER | SWT.FULL_SELECTION|SWT.MULTI);
inputTable = inputTableViewer.getTable();
inputTable.setLinesVisible(true);
inputTable.setHeaderVisible(true);
inputTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
inputTable.setVisible(true);
addButtonInputTable.setToolTipText(Messages.ADD_SCHEMA_TOOLTIP);
deletButtonInputTable.setToolTipText(Messages.DELETE_SCHEMA_TOOLTIP);
}
示例13: addButtonPanel
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
protected Composite addButtonPanel(Composite container) {
container_1.setLayout(new GridLayout(1, false));
Composite composite_1 = new Composite(container, SWT.NONE);
composite_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));
composite_1.setLayout(new GridLayout(5, false));
addButton = new Button(composite_1, SWT.NONE);
addButton.setToolTipText(Messages.ADD_KEY_SHORTCUT_TOOLTIP);
addButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
addButton.setImage(ImagePathConstant.ADD_BUTTON.getImageFromRegistry());
attachAddButtonListern(addButton);
deleteButton = new Button(composite_1, SWT.NONE);
deleteButton.setToolTipText(Messages.DELETE_KEY_SHORTCUT_TOOLTIP);
deleteButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
deleteButton.setImage(ImagePathConstant.DELETE_BUTTON.getImageFromRegistry());
attachDeleteButtonListener(deleteButton);
upButton = new Button(composite_1, SWT.NONE);
upButton.setToolTipText(Messages.MOVE_UP_KEY_SHORTCUT_TOOLTIP);
upButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
upButton.setImage(ImagePathConstant.MOVEUP_BUTTON.getImageFromRegistry());
attachUpButtonListener(upButton);
downButton = new Button(composite_1, SWT.NONE);
downButton.setToolTipText(Messages.MOVE_DOWN_KEY_SHORTCUT_TOOLTIP);
downButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
downButton.setImage( ImagePathConstant.MOVEDOWN_BUTTON.getImageFromRegistry());
attachDownButtonListerner(downButton);
deleteButton.setEnabled(false);
upButton.setEnabled(false);
downButton.setEnabled(false);
new Label(composite_1, SWT.NONE);
return composite_1;
}
示例14: MapAndPassthroughComposite
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
/**
* Create the composite.
* @param parent
* @param style
*/
public MapAndPassthroughComposite(Composite parent, int style) {
super(parent, style);
setLayout(new GridLayout(1, false));
Composite composite = new Composite(this, SWT.NONE);
composite.setLayout(new GridLayout(3, false));
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
Composite composite_2 = new Composite(composite, SWT.NONE);
composite_2.setLayout(new GridLayout(1, false));
composite_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
checkButton = new Button(composite_2, SWT.CHECK);
checkButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
checkButton.setText(PASSTHROUGH_INPUT_FIELDS);
Composite composite_3 = new Composite(composite, SWT.NONE);
composite_3.setLayout(new GridLayout(1, false));
composite_3.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
Label lblMapFields = new Label(composite_3, SWT.NONE);
lblMapFields.setText(MAP_PASSTHROUGH_FIELDS);
Composite composite_4 = new Composite(composite, SWT.NONE);
composite_4.setLayout(new GridLayout(2, false));
composite_4.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, true, true, 1, 1));
addButton = new Button(composite_4, SWT.NONE);
addButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
deleteButton = new Button(composite_4, SWT.NONE);
deleteButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
Composite composite_1 = new Composite(this, SWT.NONE);
composite_1.setLayout(new GridLayout(1, false));
composite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
tableViewer = new TableViewer(composite_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
table = tableViewer.getTable();
table.setLinesVisible(true);
table.setHeaderVisible(true);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
}
示例15: initLibraryOptionsUI
import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private Composite initLibraryOptionsUI(DataBindingContext dbc, Composite parent) {
// Additional library project options
final Group libraryProjectOptionsGroup = new Group(parent, NONE);
libraryProjectOptionsGroup
.setLayout(GridLayoutFactory.fillDefaults().margins(12, 5).numColumns(2).equalWidth(false).create());
emptyPlaceholder(libraryProjectOptionsGroup);
final Button createGreeterFileButton = new Button(libraryProjectOptionsGroup, CHECK);
createGreeterFileButton.setText("Create a greeter file");
createGreeterFileButton.setLayoutData(GridDataFactory.fillDefaults().create());
new Label(libraryProjectOptionsGroup, SWT.NONE).setText("Implementation ID:");
final Text implementationIdText = new Text(libraryProjectOptionsGroup, BORDER);
implementationIdText.setLayoutData(fillDefaults().align(FILL, SWT.CENTER).grab(true, false).create());
final Label implementedProjectsLabel = new Label(libraryProjectOptionsGroup, SWT.NONE);
implementedProjectsLabel.setText("Implemented projects:");
implementedProjectsLabel
.setLayoutData(GridDataFactory.fillDefaults().grab(false, true).align(SWT.LEFT, SWT.TOP).create());
final ListViewer apiViewer = new ListViewer(libraryProjectOptionsGroup, BORDER | MULTI);
apiViewer.getControl().setLayoutData(fillDefaults().align(FILL, FILL).grab(true, true).span(1, 1).create());
apiViewer.setContentProvider(ArrayContentProvider.getInstance());
apiViewer.setInput(getAvailableApiProjectIds());
initApiViewerBinding(dbc, apiViewer);
initImplementationIdBinding(dbc, implementationIdText);
initDefaultCreateGreeterBindings(dbc, createGreeterFileButton);
// Invalidate on change
apiViewer.addSelectionChangedListener(e -> {
setPageComplete(validatePage());
});
// Invalidate on change
implementationIdText.addModifyListener(e -> {
setPageComplete(validatePage());
});
return libraryProjectOptionsGroup;
}