<commit_before>package com.axonivy.ivy.process.element.blockchain.ui;

import java.util.Arrays;
import java.util.List;

import com.axonivy.ivy.process.element.blockchain.ProcessElementExtension;

import ch.ivyteam.ivy.designer.process.ui.inscriptionMasks.BpmnInscriptionEditor;
import ch.ivyteam.ivy.designer.process.ui.inscriptionMasks.fw.IInscriptionEditorTab;
import ch.ivyteam.ivy.process.config.element.pi.ThirdPartyProgramInterfaceConfigurator;

public class BlockchainInscriptionEditor implements BpmnInscriptionEditor
{

  @Override
  public boolean isResponsible(String modElementName)
  {
    return ProcessElementExtension.ETHEREUM_ACTIVITY.equals(modElementName);
  }

  @Override
  public List<IInscriptionEditorTab> getTabs(ThirdPartyProgramInterfaceConfigurator configurator)
  {
    BlockchainRequestUiModel requestUiModel = new BlockchainRequestUiModel(configurator);
    BlockchainResponseUiModel responseUiModel = new BlockchainResponseUiModel(configurator, requestUiModel);
    return Arrays.asList(new BlockchainRequestTab(requestUiModel), new BlockchainResponseTab(responseUiModel));
  }
}<commit_msg>XIVY-1311 Changed BpmnInscriptionEditor extension point<commit_after>package com.axonivy.ivy.process.element.blockchain.ui;

import java.util.Arrays;
import java.util.List;

import com.axonivy.ivy.process.element.blockchain.ProcessElementExtension;

import ch.ivyteam.ivy.designer.process.ui.inscriptionMasks.BpmnInscriptionEditor;
import ch.ivyteam.ivy.designer.process.ui.inscriptionMasks.fw.IInscriptionEditorTab;
import ch.ivyteam.ivy.process.config.element.AbstractProcessElementConfigurator;
import ch.ivyteam.ivy.process.config.element.pi.ThirdPartyProgramInterfaceConfigurator;

@SuppressWarnings("restriction")
public class BlockchainInscriptionEditor implements BpmnInscriptionEditor
{

  @Override
  public boolean isResponsible(String modElementName)
  {
    return ProcessElementExtension.ETHEREUM_ACTIVITY.equals(modElementName);
  }
  
  @Override
  public <T extends AbstractProcessElementConfigurator<? extends NodeElement>> List<IInscriptionEditorTab> getTabs(
          T configurator)
  {
    return getTabs((ThirdPartyProgramInterfaceConfigurator)configurator);
  }

  private List<IInscriptionEditorTab> getTabs(ThirdPartyProgramInterfaceConfigurator configurator)
  {
    BlockchainRequestUiModel requestUiModel = new BlockchainRequestUiModel(configurator);
    BlockchainResponseUiModel responseUiModel = new BlockchainResponseUiModel(configurator, requestUiModel);
    return Arrays.asList(new BlockchainRequestTab(requestUiModel), new BlockchainResponseTab(responseUiModel));
  }
}
{'fraction_non_alphanumeric': 0.07566539923954373, 'fraction_numerical': 0.001520912547528517, 'mean_word_length': 7.3789808917197455, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2659275', 'n_tokens_mistral': 800, 'n_tokens_neox': 771, 'n_words': 109}