if (selection instanceof StructuredSelection) {
Object object = ((StructuredSelection) selection)
.getFirstElement();
if (!(object instanceof DocumentEditPart)) {
// "delete node"
command = new DeleteNodeCommand(
(IHTMLGraphicalViewer) getCurrentViewer());
}
}
}
if (command == null) {