setIcon(GROUP_ICON);
} else if (node.getUserObject() instanceof CmisTest) {
setText(((CmisTest) node.getUserObject()).getName());
setIcon(TEST_ICON);
} else if (node.getUserObject() instanceof CmisTestResult) {
CmisTestResult result = (CmisTestResult) node.getUserObject();
String text = "<html><b>" + result.getStatus() + ": " + result.getMessage() + "</b>";
if ((result.getStackTrace() != null) && (result.getStackTrace().length > 0)) {
text += " (" + result.getStackTrace()[0].getFileName() + ":"
+ result.getStackTrace()[0].getLineNumber() + ")";
}
setText(text);
switch (result.getStatus()) {
case OK:
setIcon(STATUS_OK_ICON);
break;
case WARNING:
setIcon(STATUS_WARNING_ICON);