if (targetPart instanceof ProjectExplorer) {
ProjectExplorer pe = (ProjectExplorer) targetPart;
pe.getCommonViewer().refresh();
}
} else if (object instanceof ZNode) {
ZNode zkn = (ZNode) object;
if (logger.isDebugEnabled())
logger.debug("Deleting: " + zkn);
try {
ZooKeeperClient client = ZooKeeperManager.INSTANCE.getClient(zkn.getServer());
client.delete(zkn);
} catch (Exception e) {
logger.error("Error occurred ", e);
showError(e.getMessage());
}