* Setup the pattern viewer.
*
* @param parent the parent composite
*/
private void createPatternForm(Composite parent) {
ViewForm viewForm= new ViewForm(parent, SWT.NONE);
viewForm.setBorderVisible(false);
CLabel previewLabel= new CLabel(viewForm, SWT.NONE);
previewLabel.setText(TemplatesMessages.TemplatesPage_preview);
previewLabel.setImage(TemplatesPageImages.get(TemplatesPageImages.IMG_OBJ_PREVIEW));
viewForm.setTopLeft(previewLabel);
fPatternViewer= createPatternViewer(viewForm);
viewForm.setContent(fPatternViewer.getControl());
viewForm.addControlListener(new ControlListener() {
public void controlMoved(ControlEvent e) {
}
public void controlResized(ControlEvent e) {
int[] weights= fControl.getWeights();