|
Lines 345-351
Link Here
|
| 345 |
Text text; |
345 |
Text text; |
| 346 |
if ((SWT.READ_ONLY & style) == SWT.READ_ONLY) { |
346 |
if ((SWT.READ_ONLY & style) == SWT.READ_ONLY) { |
| 347 |
text = new Text(nameValueComp, style); |
347 |
text = new Text(nameValueComp, style); |
| 348 |
toolkit.adapt(text, true, false); |
348 |
toolkit.adapt(text, false, false); |
| 349 |
text.setText(value); |
349 |
text.setText(value); |
| 350 |
} else { |
350 |
} else { |
| 351 |
text = toolkit.createText(nameValueComp, value, style); |
351 |
text = toolkit.createText(nameValueComp, value, style); |
|
Lines 404-410
Link Here
|
| 404 |
nameValueComp.setLayout(nameValueLayout); |
404 |
nameValueComp.setLayout(nameValueLayout); |
| 405 |
toolkit.createLabel(nameValueComp, "Priority:").setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); |
405 |
toolkit.createLabel(nameValueComp, "Priority:").setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); |
| 406 |
priorityCombo = new CCombo(nameValueComp, SWT.FLAT | SWT.READ_ONLY); |
406 |
priorityCombo = new CCombo(nameValueComp, SWT.FLAT | SWT.READ_ONLY); |
| 407 |
toolkit.adapt(priorityCombo, true, false); |
407 |
toolkit.adapt(priorityCombo, false, false); |
| 408 |
priorityCombo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); |
408 |
priorityCombo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); |
| 409 |
toolkit.paintBordersFor(nameValueComp); |
409 |
toolkit.paintBordersFor(nameValueComp); |
| 410 |
|
410 |
|
|
Lines 619-625
Link Here
|
| 619 |
gd.widthHint = 135; |
619 |
gd.widthHint = 135; |
| 620 |
scheduleDatePicker.setLayoutData(gd); |
620 |
scheduleDatePicker.setLayoutData(gd); |
| 621 |
scheduleDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); |
621 |
scheduleDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); |
| 622 |
toolkit.adapt(scheduleDatePicker, true, false); |
622 |
toolkit.adapt(scheduleDatePicker, false, false); |
| 623 |
toolkit.paintBordersFor(nameValueComp); |
623 |
toolkit.paintBordersFor(nameValueComp); |
| 624 |
|
624 |
|
| 625 |
scheduleDatePicker.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE)); |
625 |
scheduleDatePicker.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE)); |
|
Lines 669-675
Link Here
|
| 669 |
}); |
669 |
}); |
| 670 |
|
670 |
|
| 671 |
dueDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); |
671 |
dueDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); |
| 672 |
toolkit.adapt(dueDatePicker, true, false); |
672 |
toolkit.adapt(dueDatePicker, false, false); |
| 673 |
toolkit.paintBordersFor(nameValueComp); |
673 |
toolkit.paintBordersFor(nameValueComp); |
| 674 |
|
674 |
|
| 675 |
ImageHyperlink clearDueDate = toolkit.createImageHyperlink(nameValueComp, SWT.NONE); |
675 |
ImageHyperlink clearDueDate = toolkit.createImageHyperlink(nameValueComp, SWT.NONE); |
|
Lines 709-715
Link Here
|
| 709 |
label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); |
709 |
label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); |
| 710 |
|
710 |
|
| 711 |
estimated = new Spinner(nameValueComp, SWT.FLAT); |
711 |
estimated = new Spinner(nameValueComp, SWT.FLAT); |
| 712 |
toolkit.adapt(estimated, true, false); |
712 |
toolkit.adapt(estimated, false, false); |
| 713 |
estimated.setSelection(task.getEstimatedTimeHours()); |
713 |
estimated.setSelection(task.getEstimatedTimeHours()); |
| 714 |
estimated.setDigits(0); |
714 |
estimated.setDigits(0); |
| 715 |
estimated.setMaximum(100); |
715 |
estimated.setMaximum(100); |