|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2005 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2006 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 357-363
Link Here
|
| 357 |
protected Control createDialogArea(Composite parent) { |
357 |
protected Control createDialogArea(Composite parent) { |
| 358 |
final Composite composite = (Composite) super.createDialogArea(parent); |
358 |
final Composite composite = (Composite) super.createDialogArea(parent); |
| 359 |
GridLayout parentLayout = ((GridLayout) composite.getLayout()); |
359 |
GridLayout parentLayout = ((GridLayout) composite.getLayout()); |
| 360 |
parentLayout.numColumns = 4; |
360 |
parentLayout.numColumns = 5; |
| 361 |
parentLayout.marginHeight = 0; |
361 |
parentLayout.marginHeight = 0; |
| 362 |
parentLayout.marginWidth = 0; |
362 |
parentLayout.marginWidth = 0; |
| 363 |
parentLayout.verticalSpacing = 0; |
363 |
parentLayout.verticalSpacing = 0; |
|
Lines 366-378
Link Here
|
| 366 |
composite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); |
366 |
composite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); |
| 367 |
|
367 |
|
| 368 |
Control treeControl = createTreeAreaContents(composite); |
368 |
Control treeControl = createTreeAreaContents(composite); |
|
|
369 |
|
| 370 |
createVerticalSeperator(composite); |
| 369 |
createSash(composite,treeControl); |
371 |
createSash(composite,treeControl); |
| 370 |
|
372 |
createVerticalSeperator(composite); |
| 371 |
Label versep = new Label(composite, SWT.SEPARATOR | SWT.VERTICAL); |
|
|
| 372 |
GridData verGd = new GridData(GridData.FILL_VERTICAL | GridData.GRAB_VERTICAL); |
| 373 |
|
| 374 |
versep.setLayoutData(verGd); |
| 375 |
versep.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true)); |
| 376 |
|
373 |
|
| 377 |
Composite pageAreaComposite = new Composite(composite, SWT.NONE); |
374 |
Composite pageAreaComposite = new Composite(composite, SWT.NONE); |
| 378 |
pageAreaComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); |
375 |
pageAreaComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); |
|
Lines 427-432
Link Here
|
| 427 |
} |
424 |
} |
| 428 |
|
425 |
|
| 429 |
/** |
426 |
/** |
|
|
427 |
* @param composite |
| 428 |
*/ |
| 429 |
private void createVerticalSeperator(final Composite composite) { |
| 430 |
Label versep = new Label(composite, SWT.SEPARATOR | SWT.VERTICAL); |
| 431 |
GridData verGd = new GridData(GridData.FILL_VERTICAL | GridData.GRAB_VERTICAL); |
| 432 |
|
| 433 |
versep.setLayoutData(verGd); |
| 434 |
versep.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true)); |
| 435 |
} |
| 436 |
|
| 437 |
/** |
| 430 |
* Create the sash with right control on the right. Note |
438 |
* Create the sash with right control on the right. Note |
| 431 |
* that this method assumes GridData for the layout data |
439 |
* that this method assumes GridData for the layout data |
| 432 |
* of the rightControl. |
440 |
* of the rightControl. |
|
Lines 437-445
Link Here
|
| 437 |
* @since 3.1 |
445 |
* @since 3.1 |
| 438 |
*/ |
446 |
*/ |
| 439 |
protected Sash createSash(final Composite composite, final Control rightControl) { |
447 |
protected Sash createSash(final Composite composite, final Control rightControl) { |
| 440 |
final Sash sash = new Sash(composite, SWT.VERTICAL); |
448 |
final Sash sash = new Sash(composite, SWT.SMOOTH | SWT.VERTICAL); |
| 441 |
sash.setLayoutData(new GridData(GridData.FILL_VERTICAL)); |
449 |
sash.setLayoutData(new GridData(GridData.FILL_VERTICAL)); |
| 442 |
sash.setBackground(composite.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); |
|
|
| 443 |
// the following listener resizes the tree control based on sash deltas. |
450 |
// the following listener resizes the tree control based on sash deltas. |
| 444 |
// If necessary, it will also grow/shrink the dialog. |
451 |
// If necessary, it will also grow/shrink the dialog. |
| 445 |
sash.addListener(SWT.Selection, new Listener() { |
452 |
sash.addListener(SWT.Selection, new Listener() { |