protected Command getDirectEditCommand(DirectEditRequest edit) {
String labelText = (String) edit.getCellEditor().getValue();
TextPart textPart = (TextPart)edit.getExtendedData().get(DiagramNodeEditPart.DIRECT_EDIT_REQUEST_PARAM);
if (textPart != null)
{
LabelNodeCommand command = new LabelNodeCommand(textPart, labelText);
return command;
}
return null;
}