});
Vertex vertex = (Vertex) getHost().getModel();
if (editor.getValidator().isValid(editor.getValue()) == null) {
VertexRenameCommand cmd = new VertexRenameCommand(vertex);
cmd.setName((String) editor.getValue());
return cmd;
} else {
String id = (String) vertex.getValue(ObjectType.PARAMETER_ID);
VertexFigure figure = (VertexFigure) getHostFigure();
figure.getLabelId().setText(id);