createToolBar(parent); createLeftPanel(parent); vSash = new Sash(parent, SWT.VERTICAL); createTabPanel(parent);   data = new GridData(SWT.FILL, SWT.CENTER, true, false); data.horizontalSpan = 3; toolBar.setLayoutData(data);  data = new GridData(SWT.CENTER, SWT.FILL, false, true); leftPanel.setLayoutData(data);   data = new GridData(SWT.CENTER, SWT.FILL, false, true); vSash.setLayoutData(data);   data = new GridData(SWT.FILL, SWT.FILL, true, true); rightPanel.setLayoutData(data);  vSash.addListener(SWT.Selection, new Listener() { public void handleEvent(Event event) { if (event.detail != SWT.DRAG) { GridData data = (GridData)tabList.getLayoutData(); int widthHint = event.x - tabList.computeTrim(0, 0, 0, 0).width - 14; data.widthHint = widthHint; data = (GridData)tabDesc.getLayoutData(); data.widthHint = widthHint; parent.layout(true); animate = true; } else { animate = false; } } });
createControls(parent);
public GraphicsExample(final Composite parent) {	this.parent = parent;	GridData data;	GridLayout layout = new GridLayout(3, false);	layout.horizontalSpacing = 1;	parent.setLayout(layout);	tabs = createTabs();	resources = new ArrayList();	createToolBar(parent);	createLeftPanel(parent);		vSash = new Sash(parent, SWT.VERTICAL);	createTabPanel(parent);		// set toolBar layout data	data = new GridData(SWT.FILL, SWT.CENTER, true, false);	data.horizontalSpan = 3;	toolBar.setLayoutData(data);		data = new GridData(SWT.CENTER, SWT.FILL, false, true);	leftPanel.setLayoutData(data);		// set sash layout data	data = new GridData(SWT.CENTER, SWT.FILL, false, true);	vSash.setLayoutData(data);		// set rightPanel layout data	data = new GridData(SWT.FILL, SWT.FILL, true, true);	rightPanel.setLayoutData(data);		vSash.addListener(SWT.Selection, new Listener() {		public void handleEvent(Event event) {			if (event.detail != SWT.DRAG) {				GridData data = (GridData)tabList.getLayoutData();				int widthHint = event.x - tabList.computeTrim(0, 0, 0, 0).width - 14;				data.widthHint = widthHint;				data = (GridData)tabDesc.getLayoutData();				data.widthHint = widthHint;				parent.layout(true);				animate = true;			} else {				animate = false;			}		}	});	setTab(tab);	startAnimationTimer();}