rightPanel.layout(children);
data.top = new FormAttachment(100, -MARGIN);
public void setTab(GraphicsTab tab) {	Control[] children = tabControlPanel.getChildren();	for (int i = 0; i < children.length; i++) {		Control control = children[i];		control.dispose();	}	if (this.tab != null) this.tab.dispose();	this.tab = tab;	if (tab != null) {		tab.createControlPanel(tabControlPanel);		tabDesc.setText(tab.getDescription());	} else {		tabDesc.setText("");	}	GridData data = (GridData)tabControlPanel.getLayoutData();	children = tabControlPanel.getChildren();	data.exclude = children.length == 0;	tabControlPanel.setVisible(!data.exclude);	if (data.exclude) {		rightPanel.layout();	} else {		rightPanel.layout(children);	}	if (tab != null) {		TreeItem[] selection = tabList.getSelection();		if (selection.length == 0 || selection[0].getData() != tab) {			TreeItem item = findItemByData(tabList.getItems(), tab);			if (item != null) tabList.setSelection(new TreeItem[]{item});		}	}	canvas.redraw();}