+ if (object instanceof SingleResultNode) {
+ SingleResultNode srNode = (SingleResultNode) object;
+ Node node = srNode.getNode();
+ String decoration = null;
+ try {
+ if (node.hasProperty(SlcNames.SLC_COMPLETED))
+ decoration = dateFormat.format(node
+ .getProperty(SlcNames.SLC_COMPLETED).getDate()
+ .getTime());
+ } catch (RepositoryException re) {
+ throw new SlcException(
+ "Unexpected error defining text decoration for result",
+ re);
+ }
+ return label + " [" + decoration + "]";
+ } else
+ return null;
+ }
+
+ @Override
+ public void dispose() {
+ failedFolder.dispose();
+ failedSingleResult.dispose();
+ super.dispose();