Ejemplo n.º 1
0
 @Inject
 @Optional
 private void whenKeywordCallDetailIsChanged(
     @UIEventTopic(RobotModelEvents.ROBOT_KEYWORD_CALL_DETAIL_CHANGE_ALL)
         final RobotKeywordCall keywordCall) {
   if (keywordCall.getParent() instanceof RobotCase && keywordCall.getSuiteFile() == fileModel) {
     table.update();
     table.refresh();
     setDirty();
   }
 }
Ejemplo n.º 2
0
  @Override
  public void execute() throws CommandExecutionException {
    previousComment = keywordCall.getComment();
    if (Objects.equals(previousComment, newComment)) {
      return;
    }
    CommentServiceHandler.update(
        (ICommentHolder) keywordCall.getLinkedElement(),
        ETokenSeparator.PIPE_WRAPPED_WITH_SPACE,
        newComment);
    keywordCall.resetStored();

    eventBroker.send(RobotModelEvents.ROBOT_KEYWORD_CALL_COMMENT_CHANGE, keywordCall);
  }