Java Code Examples for org.eclipse.swt.widgets.Label.getLayoutData()

The following are Jave code examples for showing how to use getLayoutData() of the org.eclipse.swt.widgets.Label class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Hydrograph   File: SelectionDatabaseWidget.java   Source Code and License Vote up 5 votes
/**
 * Create Label on Stack layout composite
 * @param labelName
 * @param compositeWithStack
 * @return
 */
private AbstractELTWidget createWidgetlabel(String labelName, ELTSubGroupCompositeWithStack compositeWithStack) {
	ELTDefaultLable label = new ELTDefaultLable(labelName).lableWidth(80);
	compositeWithStack.attachWidget(label);
	Label labelAlignment = ((Label) label.getSWTWidgetControl());
	GridData data = (GridData) labelAlignment.getLayoutData();
	data.verticalIndent = 5;

	return label;
}