}
}
private void addResourceDetails(IResource resource, IDecoration decoration)
throws Exception {
GuvnorMetadataProps props = GuvnorMetadataUtils.getGuvnorMetadata(resource);
if (props.getVersion() != null) {
boolean showRevision = GuvnorPreferencePage.shouldShowRevision();
boolean showDateTime = GuvnorPreferencePage.shouldShowTimeDateStamp();
if (showRevision || showDateTime) {
decoration.addSuffix(" "); //$NON-NLS-1$
}
if (showRevision) {
decoration.addSuffix(props.getRevision());
}
if (showDateTime) {
if (showRevision) {
decoration.addSuffix(", " + props.getVersion()); //$NON-NLS-1$
} else {
decoration.addSuffix(props.getVersion());
}
}
}
}