* .Object, org.eclipse.jface.viewers.IDecoration)
*/
@Override
public void decorate(Object element, IDecoration decoration) {
if (element instanceof ZooKeeperServer) {
ZooKeeperServer zks = (ZooKeeperServer) element;
// Image decorations
if (zks.getStatusCode() == ServerStatus.DISCONNECTED_VALUE)
decoration.addOverlay(org.apache.hdt.ui.Activator.IMAGE_OFFLINE_OVR);
else
decoration.addOverlay(org.apache.hdt.ui.Activator.IMAGE_ONLINE_OVR);
// Text decorations
decoration.addSuffix(" " + zks.getUri());
} else if (element instanceof ZNode) {
ZNode zkn = (ZNode) element;
if (zkn.getVersion() > -1) {
decoration.addSuffix(" [v=" + zkn.getVersion() + "]");
}