aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-08-13 09:02:20 (EDT)
committerzzhongwei2012-08-13 09:02:20 (EDT)
commitcf67bd122030f95697be361cb6f4fcc268f096ef (patch)
tree0df033249c6c4946973f5f4f2abc7a02a1655064
parent164ef40b7c09ee69ba6c8fdaa3fb61073d5858c4 (diff)
downloadorg.eclipse.pdt-cf67bd122030f95697be361cb6f4fcc268f096ef.zip
org.eclipse.pdt-cf67bd122030f95697be361cb6f4fcc268f096ef.tar.gz
org.eclipse.pdt-cf67bd122030f95697be361cb6f4fcc268f096ef.tar.bz2
387105: CA in use statement is case sensitive
https://bugs.eclipse.org/bugs/show_bug.cgi?id=387105
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitStrategy.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitStrategy.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitStrategy.java
index 46b2d76..c2de180 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitStrategy.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitStrategy.java
@@ -62,7 +62,7 @@ public class InUseTraitStrategy extends AbstractCompletionStrategy {
moduleDeclaration, offset);
SourceRange replacementRange = getReplacementRange(abstractContext);
for (String useType : useTypes) {
- if (useType.trim().startsWith(prefix)) {
+ if (useType.trim().toLowerCase().startsWith(prefix.toLowerCase())) {
IEvaluatedType type = PHPClassType.fromTraitName(useType,
sourceModule, offset);