Source:
<code>void createMainSection() { Composite composite = parentSection.getToolkit().createComposite(section); GridLayoutFactory.fillDefaults().numColumns(2).spacing(60, LayoutConstants.getSpacing().y).applyTo(composite); Composite leftColumn = parentSection.getToolkit().createComposite(composite); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(leftColumn); Composite rightColumn = parentSection.getToolkit().createComposite(composite); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(rightColumn); section.setClient(composite); FormColors colors = parentSection.getToolkit().getColors(); createAuthorLabel(leftColumn, colors); createCommitterLabel(leftColumn, colors); createCommitLink(rightColumn, colors); createRefLabel(rightColumn, colors); createParentsLinks(leftColumn, colors); Composite fullWidth = parentSection.getToolkit().createComposite(composite); GridDataFactory.fillDefaults().span(4, 1).grab(true, true).applyTo(fullWidth); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(fullWidth); createTitleLabel(fullWidth, colors, Messages.ReviewSet_BuildHeader, SWT.NONE); parentSection.getTaskEditorPage() .getAttributeEditorFactory() .createEditor("BuildStatus", <START> parentSection.getTaskData().getRoot().getAttribute("PATCH_SET-" + set.getId())) END> .createControl(composite, parentSection.getToolkit()); tableContainer = new Composite(composite, SWT.NONE); tableContainer.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GRAY)); GridDataFactory.fillDefaults().span(4, 1).grab(true, true).applyTo(tableContainer); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(tableContainer); actionContainer = new Composite(composite, SWT.NONE); GridDataFactory.fillDefaults().span(4, 1).grab(true, true).applyTo(actionContainer); GridLayoutFactory.fillDefaults().numColumns(4).applyTo(actionContainer); createButtons(); parentSection.getTaskEditorPage().reflow(); }</code><technical_language>check if attribute is null</technical_language>

Target:
void createMainSection() { Composite composite = parentSection.getToolkit().createComposite(section); GridLayoutFactory.fillDefaults().numColumns(2).spacing(60, LayoutConstants.getSpacing().y).applyTo(composite); Composite leftColumn = parentSection.getToolkit().createComposite(composite); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(leftColumn); Composite rightColumn = parentSection.getToolkit().createComposite(composite); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(rightColumn); section.setClient(composite); FormColors colors = parentSection.getToolkit().getColors(); createAuthorLabel(leftColumn, colors); createCommitterLabel(leftColumn, colors); createCommitLink(rightColumn, colors); createRefLabel(rightColumn, colors); createParentsLinks(leftColumn, colors); Composite fullWidth = parentSection.getToolkit().createComposite(composite); GridDataFactory.fillDefaults().span(4, 1).grab(true, true).applyTo(fullWidth); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(fullWidth); TaskAttribute buildAttribute = parentSection.getTaskData().getRoot().getAttribute("PATCH_SET-" + set.getId()); if (buildAttribute != null) { AbstractAttributeEditor editor = parentSection.getTaskEditorPage().getAttributeEditorFactory().createEditor( "BuildStatus", buildAttribute); editor.createLabelControl(composite, parentSection.getToolkit()); editor.createControl(composite, parentSection.getToolkit()); } tableContainer = new Composite(composite, SWT.NONE); tableContainer.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GRAY)); GridDataFactory.fillDefaults().span(4, 1).grab(true, true).applyTo(tableContainer); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(tableContainer); actionContainer = new Composite(composite, SWT.NONE); GridDataFactory.fillDefaults().span(4, 1).grab(true, true).applyTo(actionContainer); GridLayoutFactory.fillDefaults().numColumns(4).applyTo(actionContainer); createButtons(); parentSection.getTaskEditorPage().reflow(); }