Source:
<code>public void showError(Composite parent, Throwable originalThrowable) { Throwable throwable = wrapError(originalThrowable); String errorMessage = throwable.getMessage(); parent.setLayout(new GridLayout()); Composite statusComposite = new Composite(parent, SWT.NONE); Color bgColor= parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND); Color fgColor= parent.getDisplay().getSystemColor(SWT.COLOR_LIST_FOREGROUND); parent.setBackground(bgColor); parent.setForeground(fgColor); GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true); gridData.widthHint = 0; gridData.heightHint = 0; statusComposite.setLayoutData(gridData); IStatus displayStatus = new Status(IStatus.ERROR, JBossCentralActivator.PLUGIN_ID, errorMessage, throwable); new StatusPart(statusComposite, displayStatus); final Link link = new Link(parent, SWT.WRAP); link.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); link.setBackground(bgColor); link.setText("<a>"+Messages.visualEditorFaq+"</a>"); link.setToolTipText(Messages.visualEditorFaqLink); link.setForeground(link.getDisplay().getSystemColor(SWT.COLOR_BLUE)); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { BusyIndicator.showWhile(link.getDisplay(), new Runnable() { public void run() { JBossCentralActivator.openUrl(Messages.visualEditorFaqLink, Display.getDefault().getActiveShell(), true); } }); } }); UsageEventType eventType = JBossCentralActivator.getDefault().getUsedBrowserEventType(); UsageReporter.getInstance().trackEvent(eventType.event("N/A")); <START> parent.getParent().layout(true, true); <END> }</code><technical_language>ensure layout stuff is done calling event in case bad</technical_language>

Target:
public void showError(Composite parent, Throwable originalThrowable) { UsageEventType eventType = JBossCentralActivator.getDefault().getUsedBrowserEventType(); UsageReporter.getInstance().trackEvent(eventType.event("N/A")); Throwable throwable = wrapError(originalThrowable); String errorMessage = throwable.getMessage(); parent.setLayout(new GridLayout()); Composite statusComposite = new Composite(parent, SWT.NONE); Color bgColor= parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND); Color fgColor= parent.getDisplay().getSystemColor(SWT.COLOR_LIST_FOREGROUND); parent.setBackground(bgColor); parent.setForeground(fgColor); GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true); gridData.widthHint = 0; gridData.heightHint = 0; statusComposite.setLayoutData(gridData); IStatus displayStatus = new Status(IStatus.ERROR, JBossCentralActivator.PLUGIN_ID, errorMessage, throwable); new StatusPart(statusComposite, displayStatus); final Link link = new Link(parent, SWT.WRAP); link.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); link.setBackground(bgColor); link.setText("<a>"+Messages.visualEditorFaq+"</a>"); link.setToolTipText(Messages.visualEditorFaqLink); link.setForeground(link.getDisplay().getSystemColor(SWT.COLOR_BLUE)); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { BusyIndicator.showWhile(link.getDisplay(), new Runnable() { public void run() { JBossCentralActivator.openUrl(Messages.visualEditorFaqLink, Display.getDefault().getActiveShell(), true); } }); } }); parent.getParent().layout(true, true); }