[jboss-svn-commits] JBL Code SVN: r14766 - in labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder: ui and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Aug 31 00:18:00 EDT 2007
Author: michael.neale at jboss.com
Date: 2007-08-31 00:17:59 -0400 (Fri, 31 Aug 2007)
New Revision: 14766
Modified:
labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder/modeldriven/HumanReadable.java
labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder/ui/AddNewActionDialog.java
Log:
corrected wording from assert to insert
Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder/modeldriven/HumanReadable.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder/modeldriven/HumanReadable.java 2007-08-31 04:08:16 UTC (rev 14765)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder/modeldriven/HumanReadable.java 2007-08-31 04:17:59 UTC (rev 14766)
@@ -8,10 +8,10 @@
/**
* This contains some simple mappings between operators, conditional elements
* and the human readable equivalent.
- *
+ *
* Yes, I am making the presumption that programmers are not human, but I think
* they (we) are cool with that.
- *
+ *
* @author Michael Neale
*/
public class HumanReadable {
@@ -82,9 +82,9 @@
"Any of" );
actionDisplayMap.put( "assert",
- "Assert" );
+ "Insert" );
actionDisplayMap.put( "assertLogical",
- "Logically assert" );
+ "Logically insert" );
actionDisplayMap.put( "retract",
"Retract" );
actionDisplayMap.put( "set",
@@ -120,7 +120,7 @@
/**
* get operator by its display name
- *
+ *
* @param op
* operator display name
* @return operator
Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder/ui/AddNewActionDialog.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder/ui/AddNewActionDialog.java 2007-08-31 04:08:16 UTC (rev 14765)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/rulebuilder/ui/AddNewActionDialog.java 2007-08-31 04:17:59 UTC (rev 14766)
@@ -20,7 +20,7 @@
/**
* This provides a popup for new RHS action selection.
- *
+ *
* @author Anton Arhipov
* @author Ahti Kitsik
*/
@@ -47,8 +47,8 @@
heading );
createRetractFieldPart(composite, heading);
-
-
+
+
String[] facts = getCompletion().getFactTypes();
createFactAssertionPart( composite,
@@ -67,18 +67,18 @@
private void createRetractFieldPart(Composite composite, String heading) {
createLabel( composite, "Retract the fact" );
-
+
final Combo factsCombo = new Combo( composite, SWT.READ_ONLY );
-
+
factsCombo.add( heading );
-
+
List boundFacts = modeller.getModel().getBoundFacts();
-
+
for ( int i = 0; i < boundFacts.size(); i++ ) {
factsCombo.add( (String) boundFacts.get( i ) );
}
factsCombo.select( 0 );
-
+
factsCombo.addListener( SWT.Selection,
new Listener() {
public void handleEvent(Event event) {
@@ -87,13 +87,13 @@
}
modeller.getModel().addRhsItem( new ActionRetractFact(factsCombo.getText()) );
-
+
modeller.setDirty( true );
modeller.reloadRhs();
close();
}
} );
-
+
}
private void createModifyFieldPart(Composite composite,
@@ -105,7 +105,7 @@
factsCombo.add( heading );
List boundFacts = modeller.getModel().getBoundFacts();
-
+
for ( int i = 0; i < boundFacts.size(); i++ ) {
factsCombo.add( (String) boundFacts.get( i ) );
}
@@ -119,13 +119,13 @@
}
modeller.getModel().addRhsItem(new ActionUpdateField(factsCombo.getText()));
-
+
modeller.setDirty( true );
modeller.reloadRhs();
close();
}
} );
-
+
}
private void createDslSentences(Composite composite,
@@ -166,7 +166,7 @@
String heading,
String[] facts) {
createLabel( composite,
- "Logically assert a new fact" );
+ "Logically insert a new fact" );
final Combo factsCombo = createFactsCombo( composite,
heading,
facts );
@@ -229,13 +229,13 @@
final Combo globalVarsCombo = new Combo( composite,
SWT.READ_ONLY );
globalVarsCombo.add( heading );
-
+
List boundFacts = modeller.getModel().getBoundFacts();
-
+
//adding globals
String[] globals = modeller.getSuggestionCompletionEngine().getGlobalVariables();
boundFacts.addAll(Arrays.asList(globals));
-
+
for ( int i = 0; i < boundFacts.size(); i++ ) {
globalVarsCombo.add( (String) boundFacts.get( i ) );
}
More information about the jboss-svn-commits
mailing list