SWT-Designer: 1.2.4 Beta (March 11th)
In my Designer preferences, I clearly have checked:
"Create every component in its own block"
But, after I laid-out my controls, here's my code:
- Code: Select all
public void createPartControl(Composite parent) {
Composite thisComposite = new Composite(parent, SWT.NONE);
thisComposite.setLayout(new GridLayout());
final Group grpMath = new Group(thisComposite, SWT.NONE);
grpMath.setText("Math");
grpMath.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
final GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 6;
grpMath.setLayout(gridLayout);
new Text(grpMath, SWT.BORDER);
final Label lblPlus = new Label(grpMath, SWT.NONE);
lblPlus.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
lblPlus.setText("+");
new Text(grpMath, SWT.BORDER);
final Label lblEquals = new Label(grpMath, SWT.NONE);
lblEquals.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
lblEquals.setText("=");
final Label lblSum = new Label(grpMath, SWT.RIGHT);
lblSum.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
lblSum.setText("0.0");
final Button cmdSum = new Button(grpMath, SWT.NONE);
cmdSum.setText("Get Sum");
}
Is this just another bug with Designer and Eclipse 2.1.2?
Thanks