protected ElementWrapper getElement() {
return (ElementWrapper) getHost().getModel();
}
protected Command getReconnectSourceCommand(ReconnectRequest request) {
ReconnectElementConnectionSourceCommand cmd
= new ReconnectElementConnectionSourceCommand();
cmd.setConnection((ElementConnection) request.getConnectionEditPart().getModel());
cmd.setSource(getElement());
return cmd;
}