1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| final Shell shell = new Shell(display);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 1;
gridLayout.makeColumnsEqualWidth = true;
shell.setLayout(gridLayout);
GridData browseBTGridData = new GridData();
browseBTGridData.horizontalAlignment = GridData.END;
sashForm = new SashForm(shell, SWT.HORIZONTAL);
GridData sashGridData = new GridData(GridData.FILL_BOTH);
sashForm.setLayoutData(sashGridData);
leftTreeViewer = new TreeViewer(sashForm, SWT.MULTI);
Button createButton = new Button(sashForm, SWT.PUSH | SWT.CENTER);
createButton.setText("bouton");
rightTreeViewer = new TreeViewer(sashForm, SWT.MULTI);
sashForm.setWeights(new int[] {45, 10, 45});
Composite composite = new Composite(shell, SWT.NONE);
composite.setLayout(new GridLayout(1, true));
GridData g = new GridData();
g.horizontalAlignment = SWT.RIGHT;
composite.setLayoutData(g);
Button okButton = new Button(composite, SWT.PUSH);
okButton.setText("Terminer"); |