* @see DirectEditPolicy#getDirectEditCommand(org.eclipse.gef.requests.DirectEditRequest)
*/
@Override
protected Command getDirectEditCommand(DirectEditRequest request) {
Activity source = (Activity) getHost().getModel();
RenameActivityCommand cmd = new RenameActivityCommand(source.getDiagram().getTextEditor());
cmd.setSource(source);
cmd.setOldName(((Activity) getHost().getModel()).getName());
cmd.setName((String) request.getCellEditor().getValue());
return cmd;
}