[jboss-svn-commits] JBL Code SVN: r13096 - in labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main: resources/org/drools/eclipse/editors and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jul 4 19:29:33 EDT 2007


Author: KrisVerlaenen
Date: 2007-07-04 19:29:33 -0400 (Wed, 04 Jul 2007)
New Revision: 13096

Modified:
   labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/completion/RuleCompletionProcessor.java
   labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/resources/org/drools/eclipse/editors/keywords.properties
Log:
JBRULES-973: Add code completion support for new 4.0 features
 - added support for nested froms, forall, && and ||

Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/completion/RuleCompletionProcessor.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/completion/RuleCompletionProcessor.java	2007-07-04 23:17:23 UTC (rev 13095)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/completion/RuleCompletionProcessor.java	2007-07-04 23:29:33 UTC (rev 13096)
@@ -106,6 +106,8 @@
 					"or ", DROOLS_ICON));
 			list.add(new RuleCompletionProposal(prefix.length(), "from",
 					"from ", DROOLS_ICON));
+			list.add(new RuleCompletionProposal(prefix.length(), "forall",
+					"forall(  )", 8, DROOLS_ICON));
 			RuleCompletionProposal prop = new RuleCompletionProposal(prefix
 					.length(), "eval", "eval(  )", 6);
 			prop.setImage(DROOLS_ICON);
@@ -375,9 +377,9 @@
 					getRuleParameters(backText)));
 			break;
 		case Location.LOCATION_LHS_INSIDE_CONDITION_END:
-			list.add(new RuleCompletionProposal(prefix.length(), "&", "& ",
+			list.add(new RuleCompletionProposal(prefix.length(), "&&", "&& ",
 					DROOLS_ICON));
-			list.add(new RuleCompletionProposal(prefix.length(), "|", "| ",
+			list.add(new RuleCompletionProposal(prefix.length(), "||", "|| ",
 					DROOLS_ICON));
 			list.add(new RuleCompletionProposal(prefix.length(), ",", ", ",
 					DROOLS_ICON));

Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/resources/org/drools/eclipse/editors/keywords.properties
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/resources/org/drools/eclipse/editors/keywords.properties	2007-07-04 23:17:23 UTC (rev 13095)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/resources/org/drools/eclipse/editors/keywords.properties	2007-07-04 23:29:33 UTC (rev 13096)
@@ -34,4 +34,5 @@
 collect
 date-effective
 date-expires
-enabled
\ No newline at end of file
+enabled
+forall
\ No newline at end of file




More information about the jboss-svn-commits mailing list