public DeleteButton(final RetractFact retractFact) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveThisRetractStatement() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { retractList.remove( retractFact ); scenario.getFixtures().remove( retractFact ); parent.renderEditor(); } } ); } }
public DeleteButton() { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), CommonConstants.INSTANCE.DeleteItem() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if ( Window.confirm( TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveThisItem() ) ) { scenario.removeExecutionTrace( previousEx ); parent.renderEditor(); } } } ); } }
public DeleteButton() { super( CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveCallMethod() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { onDelete(); } } ); } }
public DeleteButton(final FixtureList definitionList) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveThisBlockOfData() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { onDelete(); } } ); } }
public DeleteButton(final VerifyFact verifyFact) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.DeleteTheExpectationForThisFact() ); addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if ( Window.confirm( TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveThisExpectation() ) ) { scenario.removeFixture( verifyFact ); parent.renderEditor(); } } } ); } }
public DeleteFieldRowButton(final Fact fact, final String fieldName) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveThisRow()); addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (fact instanceof FactData) { if (Window.confirm(TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveRow0(fieldName))) { ScenarioHelper.removeFields(definitionList, fieldName); } } else if (fact instanceof Fact) { if (Window.confirm(TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveRow0(fieldName))) { fact.removeField(fieldName); } } parent.renderEditor(); } }); } }
public DeleteFactColumnButton(final FactData fact) { super(CommonAltedImages.INSTANCE.DeleteItemSmall(), TestScenarioConstants.INSTANCE.RemoveTheColumnForScenario(fact.getName())); addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (scenario.isFactDataReferenced(fact)) { Window.alert(TestScenarioConstants.INSTANCE.CanTRemoveThisColumnAsTheName0IsBeingUsed(fact.getName())); } else if (Window.confirm(TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveColumn0(fact.getName()))) { scenario.removeFixture(fact); definitionList.remove(fact); parent.renderEditor(); } } }); } }
cellEditor ); Image del = CommonAltedImages.INSTANCE.DeleteItemSmall(); del.setAltText(TestScenarioConstants.INSTANCE.RemoveThisFieldExpectation()); del.setTitle(TestScenarioConstants.INSTANCE.RemoveThisFieldExpectation());
0, new SmallLabel( acticateRuleFlowGroup.getName() ) ); Image image = CommonAltedImages.INSTANCE.DeleteItemSmall(); image.setAltText(TestScenarioConstants.INSTANCE.RemoveThisRuleFlowActivation()); ImageButton del = new ImageButton(image,
h ); Image del = CommonAltedImages.INSTANCE.DeleteItemSmall(); del.setAltText(TestScenarioConstants.INSTANCE.RemoveThisRuleExpectation()); del.setTitle(TestScenarioConstants.INSTANCE.RemoveThisRuleExpectation());