* Policy for editing elements.
*/
public class ElementEditPolicy extends ComponentEditPolicy {
protected Command createDeleteCommand(GroupRequest deleteRequest) {
ElementContainer parent = (ElementContainer) getHost().getParent().getModel();
DeleteElementCommand deleteCmd = new DeleteElementCommand();
deleteCmd.setParent(parent);
deleteCmd.setChild((ElementWrapper) (getHost().getModel()));
return deleteCmd;
}