@Override
  public void onClick(ClickEvent event) {
    final FormStylePopup pop = new FormStylePopup();
    pop.setTitle(TestScenarioConstants.INSTANCE.ChooseDotDotDot());

    pop.addAttribute(TestScenarioConstants.INSTANCE.ChooseAFieldToAdd(), createAddNewField(pop));

    pop.show();
  }
 public InsertFactWidget(
     String factType,
     FixtureList definitionList,
     Scenario scenario,
     DataModelOracle dmo,
     ScenarioParentWidget parent,
     ExecutionTrace executionTrace) {
   super(
       factType,
       definitionList,
       scenario,
       dmo,
       parent,
       executionTrace,
       TestScenarioConstants.INSTANCE.insertForScenario(factType));
 }
  public void onDelete() {
    boolean used = false;

    for (Fixture fixture : definitionList) {
      if (fixture instanceof FactData) {
        final FactData factData = (FactData) fixture;
        if (scenario.isFactDataReferenced(factData)) {
          used = true;
          break;
        }
      }
    }

    if (used) {
      ErrorPopup.showMessage(
          TestScenarioConstants.INSTANCE.CantRemoveThisBlockAsOneOfTheNamesIsBeingUsed());
    } else {
      super.onDelete();
    }
  }