|
Lines 46-55
Link Here
|
| 46 |
protected Control createDialogArea(Composite parent) { |
46 |
protected Control createDialogArea(Composite parent) { |
| 47 |
setTitle(TeamUIMessages.WorkingSetsDialog_Title); |
47 |
setTitle(TeamUIMessages.WorkingSetsDialog_Title); |
| 48 |
setMessage(TeamUIMessages.WorkingSetsDialog_Message); |
48 |
setMessage(TeamUIMessages.WorkingSetsDialog_Message); |
| 49 |
Composite composite = (Composite) super.createDialogArea(parent); |
49 |
Composite workingSetsComposite = (Composite) super.createDialogArea(parent); |
|
|
50 |
workingSetsComposite = new Composite(workingSetsComposite, SWT.NONE); |
| 50 |
getShell().setText(TeamUIMessages.WorkingSetsDialog_TitleBar); |
51 |
getShell().setText(TeamUIMessages.WorkingSetsDialog_TitleBar); |
| 51 |
|
52 |
|
| 52 |
final Composite group = new Composite(composite, SWT.NONE); |
53 |
final Composite group = new Composite(workingSetsComposite, SWT.NONE); |
| 53 |
GridLayout layout = new GridLayout(2, false); |
54 |
GridLayout layout = new GridLayout(2, false); |
| 54 |
layout.marginWidth = 0; |
55 |
layout.marginWidth = 0; |
| 55 |
group.setLayout(layout); |
56 |
group.setLayout(layout); |
|
Lines 66-76
Link Here
|
| 66 |
layout.numColumns = 1; |
67 |
layout.numColumns = 1; |
| 67 |
layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN); |
68 |
layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN); |
| 68 |
layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); |
69 |
layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); |
| 69 |
composite.setLayout(layout); |
70 |
workingSetsComposite.setLayout(layout); |
| 70 |
final GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); |
71 |
final GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); |
| 71 |
composite.setLayoutData(data); |
72 |
workingSetsComposite.setLayoutData(data); |
| 72 |
|
73 |
|
| 73 |
wsTableViewer = new TableViewer(composite, SWT.BORDER); |
74 |
wsTableViewer = new TableViewer(workingSetsComposite, SWT.BORDER); |
| 74 |
final GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true); |
75 |
final GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true); |
| 75 |
gd.widthHint = 450; |
76 |
gd.widthHint = 450; |
| 76 |
gd.heightHint = 250; |
77 |
gd.heightHint = 250; |