Example #1
0
  @Override
  public boolean checkIfCanBeMapped(
      final RobotFileOutput robotFileOutput,
      final RobotLine currentLine,
      final RobotToken rt,
      final String text,
      final Stack<ParsingState> processingState) {
    boolean result = false;
    final ParsingState state = utility.getCurrentStatus(processingState);
    result =
        (state == ParsingState.KEYWORD_SETTING_RETURN
            || state == ParsingState.KEYWORD_SETTING_RETURN_VALUE);

    return result;
  }
  @Override
  public boolean checkIfCanBeMapped(
      final RobotFileOutput robotFileOutput,
      final RobotLine currentLine,
      final RobotToken rt,
      final String text,
      final Stack<ParsingState> processingState) {
    boolean result = false;
    final ParsingState state = stateHelper.getCurrentStatus(processingState);
    if (state == ParsingState.SETTING_TEST_SETUP) {
      final List<TestSetup> testSetups =
          robotFileOutput.getFileModel().getSettingTable().getTestSetups();
      result = utility.checkIfHasAlreadyKeywordName(testSetups);
    } else if (state == ParsingState.SETTING_TEST_SETUP_KEYWORD
        || state == ParsingState.SETTING_TEST_SETUP_KEYWORD_ARGUMENT) {
      result = true;
    }

    return result;
  }