[jbosstools-commits] JBoss Tools SVN: r3078 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri Aug 10 09:35:42 EDT 2007
Author: scabanovich
Date: 2007-08-10 09:35:42 -0400 (Fri, 10 Aug 2007)
New Revision: 3078
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/AbstractContextVariable.java
Log:
Fixed setting of scope by scanners
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/AbstractContextVariable.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/AbstractContextVariable.java 2007-08-10 13:24:58 UTC (rev 3077)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/AbstractContextVariable.java 2007-08-10 13:35:42 UTC (rev 3078)
@@ -36,9 +36,10 @@
}
public void setScopeAsString(String scope) {
- if(scope != null && scope.indexOf('.') > 0) {
- scope = scope.substring(scope.lastIndexOf('.'));
+ if(scope != null && scope.indexOf('.') >= 0) {
+ scope = scope.substring(scope.lastIndexOf('.') + 1);
}
+ this.scope = scope;
try {
this.scopeType = scope == null || scope.length() == 0 ? ScopeType.UNSPECIFIED : ScopeType.valueOf(scope.toUpperCase());
} catch (IllegalArgumentException e) {
More information about the jbosstools-commits
mailing list