* Creates commands to destroy all host incoming and outgoing links.
*
* @generated
*/
protected CompoundCommand getDestroyEdgesCommand() {
CompoundCommand cmd = new CompoundCommand();
View view = (View) getHost().getModel();
for (Iterator it = view.getSourceEdges().iterator(); it.hasNext();) {
cmd.add(getDestroyElementCommand((Edge) it.next()));
}
for (Iterator it = view.getTargetEdges().iterator(); it.hasNext();) {
cmd.add(getDestroyElementCommand((Edge) it.next()));
}
return cmd;
}