Bug 173888 [Snippets] CTabFolder doesn't minimize from maximized state
Steps to reproduce: - run Snippet165 - maximize - attempt to minimize; observe the icons change to restore and maximize, but the tab remains maximized There seems to be a line missing in the minimization code that resets the layout data.
examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet165.java
}
	folder.setMinimizeVisible(true);
	folder.setMaximizeVisible(true);
	folder.addCTabFolder2Listener(new CTabFolder2Adapter() {
		public void minimize(CTabFolderEvent event) {
			folder.setMinimized(true);
			shell.layout(true);
		}
		public void maximize(CTabFolderEvent event) {
			folder.setMaximized(true);
			folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
			shell.layout(true);
		}
		public void restore(CTabFolderEvent event) {
			folder.setMinimized(false);
			folder.setMaximized(false);
			folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
			shell.layout(true);
		}
	});
	shell.setSize(300, 300);
	shell.open ();
	while (!shell.isDisposed ()) {
		if (!display.readAndDispatch ()) display.sleep ();
	}
	image.dispose();
	display.dispose ();
}
}