tabLabels[i] = new Label(tabComposite, SWT.LEFT | SWT.BORDER);
switch (i) {
case MODE_HTML:
- tabLabels[i].setText("HTML");
+ tabLabels[i].setText(" HTML ");
break;
case MODE_CSS:
- tabLabels[i].setText("CSS");
+ tabLabels[i].setText(" CSS");
break;
case MODE_JS:
- tabLabels[i].setText("JS");
+ tabLabels[i].setText(" JS");
break;
default:
break;
formData = new FormData();
formData.left = new FormAttachment(0, margin);
- formData.right = new FormAttachment(25, -2 * margin);
+ formData.width = 250;
formData.top = new FormAttachment(0, margin);
fComboViewer.getControl().setLayoutData(formData);
formData = new FormData();
formData.left = new FormAttachment(0, margin);
- formData.right = new FormAttachment(8, 0);
+ formData.width = SWT.DEFAULT;
formData.bottom = new FormAttachment(100, -margin);
formData.top = new FormAttachment(topControl, margin);
tabComposite.setLayoutData(formData);