@@ -0,0 +1,1384 @@
+/**%0D%0A * %0D%0A */%0D%0Apackage org.framed.orm.ui.editPolicy;%0D%0A%0D%0Aimport org.eclipse.gef.commands.Command;%0D%0Aimport org.eclipse.gef.editpolicies.DirectEditPolicy;%0D%0Aimport org.eclipse.gef.requests.DirectEditRequest;%0D%0Aimport org.framed.orm.model.RelationLabel;%0D%0Aimport org.framed.orm.ui.command.connectionkinds.ORMRelationLabelRenameCommand;%0D%0Aimport org.framed.orm.ui.figure.LabelFigure;%0D%0A%0D%0A/**%0D%0A * @author Lars Schuetze%0D%0A * %0D%0A */%0D%0Apublic class ORMRelationLabelEditPolicy extends DirectEditPolicy %7B%0D%0A%0D%0A  /*%0D%0A   * (non-Javadoc)%0D%0A   * %0D%0A   * @see%0D%0A   * org.eclipse.gef.editpolicies.DirectEditPolicy#getDirectEditCommand(org.eclipse.gef.requests%0D%0A   * .DirectEditRequest)%0D%0A   */%0D%0A  @Override%0D%0A  protected Command getDirectEditCommand(DirectEditRequest request) %7B%0D%0A    ORMRelationLabelRenameCommand command = new ORMRelationLabelRenameCommand();%0D%0A    command.setRelationLabel((RelationLabel) getHost().getModel());%0D%0A    command.setNewLabel((String) request.getCellEditor().getValue());%0D%0A%0D%0A    return command;%0D%0A  %7D%0D%0A%0D%0A  /*%0D%0A   * (non-Javadoc)%0D%0A   * %0D%0A   * @see%0D%0A   * org.eclipse.gef.editpolicies.DirectEditPolicy#showCurrentEditValue(org.eclipse.gef.requests%0D%0A   * .DirectEditRequest)%0D%0A   */%0D%0A  @Override%0D%0A  protected void showCurrentEditValue(DirectEditRequest request) %7B%0D%0A    String value = (String) request.getCellEditor().getValue();%0D%0A    ((LabelFigure) getHostFigure()).setText(value);%0D%0A  %7D%0D%0A%0D%0A%7D%0D%0A

add rename command policy for relation label respective bug #55