Пример #1
0
  @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();
  }
Пример #2
0
 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));
 }
Пример #3
0
  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();
    }
  }