[jboss-svn-commits] JBL Code SVN: r33834 - in labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client: qa and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Jul 12 05:41:03 EDT 2010


Author: jervisliu
Date: 2010-07-12 05:41:03 -0400 (Mon, 12 Jul 2010)
New Revision: 33834

Modified:
   labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.properties
   labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/qa/ScenarioWidget.java
   labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/qa/VerifyFactWidget.java
Log:
https://jira.jboss.org/browse/GUVNOR-26: Scenerio Manager: "Remove Expection" Dialog Should Indicate Expectation Being Removed

Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.properties
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.properties	2010-07-12 09:36:47 UTC (rev 33833)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/messages/Constants.properties	2010-07-12 09:41:03 UTC (rev 33834)
@@ -748,7 +748,7 @@
 FactValue=Fact value:
 AnyFactThatMatches=Any fact that matches:
 DeleteTheExpectationForThisFact=Delete the expectation for this fact.
-AreYouSureYouWantToRemoveThisExpectation=Are you sure you want to remove this expectation?
+AreYouSureYouWantToRemoveThisExpectation=Are you sure you want to remove expectation [{0}]?
 EnterRuleNameScenario=Enter name of rule, or pick from a list. If there are a very large number of rules, you will need to type in the name.
 showListButton=(show list)
 loadingList1=(loading list)
@@ -782,7 +782,7 @@
 equalsScenario=equals
 doesNotEqualScenario=does not equal
 RemoveThisFieldExpectation=Remove this field expectation.
-AreYouSureYouWantToRemoveThisFieldExpectation=Are you sure you want to remove this field expectation?
+AreYouSureYouWantToRemoveThisFieldExpectation=Are you sure you want to remove field expectation [{0}]?
 ActualResult=(Actual: {0})
 ExpectRules=Expect rules
 firedAtLeastOnce=fired at least once

Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/qa/ScenarioWidget.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/qa/ScenarioWidget.java	2010-07-12 09:36:47 UTC (rev 33833)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/qa/ScenarioWidget.java	2010-07-12 09:41:03 UTC (rev 33834)
@@ -485,7 +485,8 @@
             Image del = new ImageButton("images/delete_item_small.gif", constants.DeleteTheExpectationForThisFact(), new ClickListener() {     //NON-NLS
 
                 public void onClick(Widget w) {
-                    if (Window.confirm(constants.AreYouSureYouWantToRemoveThisExpectation())) {
+                    if (Window.confirm(Format.format( constants.AreYouSureYouWantToRemoveThisExpectation(),
+							f.name))) {
                         scenario.removeFixture(f);
                         renderEditor();
                     }

Modified: labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/qa/VerifyFactWidget.java
===================================================================
--- labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/qa/VerifyFactWidget.java	2010-07-12 09:36:47 UTC (rev 33833)
+++ labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/client/qa/VerifyFactWidget.java	2010-07-12 09:41:03 UTC (rev 33834)
@@ -119,7 +119,8 @@
 
             Image del = new ImageButton("images/delete_item_small.gif", constants.RemoveThisFieldExpectation(), new ClickListener() {
 				public void onClick(Widget w) {
-					if (Window.confirm(constants.AreYouSureYouWantToRemoveThisFieldExpectation())) {
+					if (Window.confirm(Format.format( constants.AreYouSureYouWantToRemoveThisFieldExpectation(),
+							fld.fieldName))) {
 						vf.fieldValues.remove(fld);
 				        FlexTable data = render(vf);
 				        outer.setWidget(1, 0, data);



More information about the jboss-svn-commits mailing list