コード例 #1
0
  private CommandExecutionResult executeInternal(
      SequenceDiagram system, final RegexResult line0, final List<String> in) {
    final AbstractMessage m = system.getLastMessage();
    if (m != null) {
      final NotePosition position = NotePosition.valueOf(line0.get("POSITION", 0).toUpperCase());
      List<CharSequence> strings = StringUtils.manageEmbededDiagrams(in);
      final Url url;
      if (strings.size() > 0) {
        url =
            StringUtils.extractUrl(
                system.getSkinParam().getValue("topurl"), strings.get(0).toString(), true);
      } else {
        url = null;
      }
      if (url != null) {
        strings = strings.subList(1, strings.size());
      }

      m.setNote(strings, position, line0.get("COLOR", 0), url);
    }

    return CommandExecutionResult.ok();
  }