handleFailureAndWarningResults();
handleCodeCoverageResults();
}
protected void handleFailureAndWarningResults() {
DeployMessageExtractor extractor = new DeployMessageExtractor(deployResultHandler);
FontRegistry registry = new FontRegistry();
Font boldFont = registry.getBold(Display.getCurrent().getSystemFont().getFontData()[0].getName());
Collection<DeployMessage> deploySuccesses = extractor.getDeploySuccesses();
handleDeploySuccessMessages(deploySuccesses);
Collection<DeployMessage> deployFailures = extractor.getDeployFailures();
Collection<RunTestFailure> testFailures = extractor.getTestFailures();
if (!deployFailures.isEmpty() || !testFailures.isEmpty()) {
TreeItem rootFailureTreeItem = new TreeItem(resultsTree, SWT.NONE);
rootFailureTreeItem.setText("Failures");
rootFailureTreeItem.setImage(failureIcon);
rootFailureTreeItem.setForeground(rootFailureTreeItem.getDisplay().getSystemColor(SWT.COLOR_RED));
rootFailureTreeItem.setFont(boldFont);
rootFailureTreeItem.setExpanded(true);
handleDeployFailureMessages(deployFailures, rootFailureTreeItem);
handleDeployTestFailureMessages(testFailures, rootFailureTreeItem);
}
Collection<DeployMessage> deployWarnings = extractor.getDeployWarnings();
List<CodeCoverageWarning> testWarnings = extractor.getTestWarnings();
if (!deployWarnings.isEmpty()) {
TreeItem rootWarningTreeItem = new TreeItem(resultsTree, SWT.NONE);
rootWarningTreeItem.setText("Deploy Warnings");
rootWarningTreeItem.setImage(warningIcon);
rootWarningTreeItem.setForeground(rootWarningTreeItem.getDisplay().getSystemColor(SWT.COLOR_DARK_YELLOW));